Interface IAttachmentPlugin
Interface for plugins that handle Service Attachments; more specifically, fetching/saving the actual attachment content and related methods like Delete and existence checks.
Namespace: SuperOffice.CRM.Attachment
Assembly: SoDataBase.dll
Syntax
public interface IAttachmentPlugin
Methods
AttachmentExists()
Check if an attachment content exists
Declaration
bool AttachmentExists()
Returns
Type | Description |
---|---|
bool | true if content exists |
Delete()
Method to remove an attachment
Declaration
void Delete()
Remarks
Port from Attachment::remove
GetData()
Get the content of the attachment
Declaration
Stream GetData()
Returns
Type | Description |
---|---|
Stream | Stream of data |
SaveData(Stream)
Save the content of the attachment
Declaration
void SaveData(Stream data)
Parameters
Type | Name | Description |
---|---|---|
Stream | data | Attachment data |
SetAttachmentId(int)
Interface for plugins that handle Service Attachments; more specifically, fetching/saving the actual attachment content and related methods like Delete and existence checks.
Declaration
void SetAttachmentId(int attachmentId)
Parameters
Type | Name | Description |
---|---|---|
int | attachmentId |