Class DocumentPreview
Document data intended for preview purposes
Carrier object for DocumentPreview. Services for the DocumentPreview Carrier is available from the IDocumentAgent.Namespace: SuperOffice.CRM.Services
Assembly: SuperOffice.Services.dll
Syntax
public class DocumentPreview : Carrier
Constructors
DocumentPreview()
Default constructor
Declaration
public DocumentPreview()
See Also
Properties
Name
The documents name
Declaration
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
String |
See Also
Size
Size of the stream
Declaration
public virtual int Size { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
See Also
Stream
Document data
Declaration
public virtual byte[] Stream { get; set; }
Property Value
Type | Description |
---|---|
Byte[] |
See Also
Type
The mimetype of the stream
Declaration
public virtual string Type { get; set; }
Property Value
Type | Description |
---|---|
String |
See Also
Methods
ToString()
Returns the carrier contents as a formatted string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | The carrier contents. |
See Also
ToString(String)
Returns the carrier contents as a formatted string, useful for debugging. Each line in the output is prefixed with the input value.
Declaration
public string ToString(string prefix)
Parameters
Type | Name | Description |
---|---|---|
String | prefix | The line prefix (typically used for indenting) |
Returns
Type | Description |
---|---|
String | The carrier contents. |