Click or drag to resize
CMSAbstractTransformationGetAttachmentUrlByGUID Method
Returns URL of the attachment based on given GUID.

Namespace: CMS.DocumentEngine.Web.UI
Assembly: CMS.DocumentEngine.Web.UI (in CMS.DocumentEngine.Web.UI.dll) Version: 11.0.0
Syntax
C#
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: String
Remarks
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