Click or drag to resize
TransformationHelperGetAttachmentUrlByDocumentId Method
Returns URL of the attachment.

Namespace: CMS.DocumentEngine.Web.UI
Assembly: CMS.DocumentEngine.Web.UI (in CMS.DocumentEngine.Web.UI.dll) Version: 12.0.0
Syntax
C#
public string GetAttachmentUrlByDocumentId(
	string attachmentFileName,
	int attachmentDocumentId,
	string variant = null
)

Parameters

attachmentFileName
Type: SystemString
Name of the attachment file.
attachmentDocumentId
Type: SystemInt32
Attachment document ID.
variant (Optional)
Type: SystemString
Identifier of the attachment variant definition.

Return Value

Type: String
See Also