Class DocumentBase
Base class for document handling.
Inherited Members
Namespace: SuperOffice.CRM.Documents
Assembly: SoDataBase.dll
Syntax
public abstract class DocumentBase
Constructors
DocumentBase()
Constructor to be used by inheriting classes
Declaration
protected DocumentBase()
Properties
FileExtension
Extension of for the underlaying file.
Declaration
[Obsolete("This method is not in use", true)]
public virtual string FileExtension { get; }
Property Value
Type | Description |
---|---|
String |
Methods
ImpersonateUser()
Impersonate the user, if needed.
Declaration
protected void ImpersonateUser()
Load()
Load the document.
Declaration
public virtual Stream Load()
Returns
Type | Description |
---|---|
Stream | Stream to read the document from. |
RevertUser()
Revert the impersonation
Declaration
protected void RevertUser()
Save(Stream)
Save the document
Declaration
public virtual void Save(Stream document)
Parameters
Type | Name | Description |
---|---|---|
Stream | document | Stream to read the document from. |
Remarks
If the document file does not already exist, the document file is created.
Extension Methods
EnumUtil.MapEnums<From, To>(From)