Show / Hide Table of Contents

Class DocumentBase

Base class for document handling.

Inheritance
Object
DocumentBase
PhysicalDocumentTemplate
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
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)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top