Class OpenDIDocument
Open DI representation of a WMModelBase.
Inherited Members
Namespace: Quantellia.WMServer.OpenDI
Assembly: WMServer.dll
Syntax
public class OpenDIDocument : OpenDIAsset
Constructors
OpenDIDocument()
Default constructor
Declaration
public OpenDIDocument()
OpenDIDocument(WMDocument)
Constructor that initializes a new instance with the data from a WMModelBase object.
Declaration
public OpenDIDocument(WMDocument asset)
Parameters
| Type | Name | Description |
|---|---|---|
| WMDocument | asset | The asset with which to initialize this OpenDIModel |
Properties
DocumentData
A Base-64 encoded string representing the stored document
Declaration
public string? DocumentData { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
DocumentEditedText
Stores the text of a document in an editable format. Is not guaranteed to be correct, or exist.
Declaration
public string? DocumentEditedText { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
DocumentMIMEType
The type of the stored data.
Declaration
public string? DocumentMIMEType { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
DocumentName
The name of the document
Declaration
public string? DocumentName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
ToDTODefault()
Create a new IWMAssetBaseDTO object that contains the properties of this OpenDIAsset. Throws an exception if null values without default are encountered.
Declaration
public WMDocumentDTO ToDTODefault()
Returns
| Type | Description |
|---|---|
| WMDocumentDTO | A IWMAssetBaseDTO object that contains the properties (or default values) of this OpenDIAsset |
ToDTOPartial()
Create a new IWMAssetBaseDTO object that contains only the properties of this OpenDIAsset with no defaults.
Declaration
public WMDocumentDTO ToDTOPartial()
Returns
| Type | Description |
|---|---|
| WMDocumentDTO | A IWMAssetBaseDTO object that contains the properties of this OpenDIAsset |