AttachmentInfoProviderAddTemporaryAttachment Method (Guid, Guid, Guid, String, Int32, Int32, Int32, Int32) |
Adds the temporary attachment to the document, updates the attachment if currently present.
Namespace: CMS.DocumentEngineAssembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 10.0.0
Syntax public AttachmentInfo AddTemporaryAttachment(
Guid formGuid,
Guid attachmentGuid,
Guid groupGuid,
string file,
int siteId,
int width = -1,
int height = -1,
int maxSideSize = -1
)
Parameters
- formGuid
- Type: SystemGuid
GUID of the form - attachmentGuid
- Type: SystemGuid
GUID of the attachment (optional) - groupGuid
- Type: SystemGuid
GUID of the attachment group (optional) - file
- Type: SystemString
Attachment file path - siteId
- Type: SystemInt32
Site ID - width (Optional)
- Type: SystemInt32
New width of the image attachment (Use ImageHelper.AUTOSIZE to keep the width) - height (Optional)
- Type: SystemInt32
New height of the image attachment (Use ImageHelper.AUTOSIZE to keep the height) - maxSideSize (Optional)
- Type: SystemInt32
Maximal side size of the image attachment
Return Value
Type:
AttachmentInfoSee Also