Class MailAttachmentProvider
Gets information about an attachment for a mail
Namespace: SuperOffice.CRM.Mail
Assembly: SoDataBase.dll
Syntax
public static class MailAttachmentProvider : Object
Methods
GetFor(PhysicalDocument)
Create a mail attachment from a document stored in the document archive.
Declaration
public static MailAttachment GetFor(PhysicalDocument document)
Parameters
Type | Name | Description |
---|---|---|
PhysicalDocument | document | Object referring to the document in the document archive. |
Returns
Type | Description |
---|---|
MailAttachment |
GetFor(Document)
Create a mail attachment from a document stored in the document archive.
Declaration
public static MailAttachment GetFor(Document document)
Parameters
Type | Name | Description |
---|---|---|
Document | document | Entity representing the document. |
Returns
Type | Description |
---|---|
MailAttachment |
GetFor(IDocumentInfo)
Create a mail attachment from a document stored in the document archive.
Declaration
public static MailAttachment GetFor(IDocumentInfo documentInfo)
Parameters
Type | Name | Description |
---|---|---|
IDocumentInfo | documentInfo | Information about the document |
Returns
Type | Description |
---|---|
MailAttachment |
GetFor(Int32)
Create a mail attachment from a document stored in the document archive.
Declaration
public static MailAttachment GetFor(int documentId)
Parameters
Type | Name | Description |
---|---|---|
Int32 | documentId | Primary key of the document in the database. |
Returns
Type | Description |
---|---|
MailAttachment |