CMSAbstractTransformationGetAttachmentUrlByGUID Method |
Returns URL of the attachment based on given GUID.
Namespace: CMS.DocumentEngine.Web.UIAssembly: CMS.DocumentEngine.Web.UI (in CMS.DocumentEngine.Web.UI.dll) Version: 12.0.0
Syntax public string GetAttachmentUrlByGUID(
Object attachmentGuid,
Object attachmentFileName,
string variant = null
)
Parameters
- attachmentGuid
- Type: SystemObject
Attachment GUID. - attachmentFileName
- Type: SystemObject
Name of the attachment file. - variant (Optional)
- Type: SystemString
Identifier of the attachment variant definition.
Return Value
Type:
StringRemarks
The attachmentFileName is not mandatory and its value does not need to correspond with the actual
file name of the attachment. For the File page type the value of page NodeAlias can be used instead as a file name.
See Also