Click or drag to resize
AttachmentURLProviderGetAttachmentUrl Method (Guid, String, String, Int32, String, String)
Returns attachment URL.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 10.0.0
Syntax
C#
public static string GetAttachmentUrl(
	Guid attachmentGuid,
	string nodeAlias,
	string extension = null,
	int versionHistoryId = 0,
	string prefix = null,
	string variant = null
)

Parameters

attachmentGuid
Type: SystemGuid
Attachment GUID.
nodeAlias
Type: SystemString
Node Alias name.
extension (Optional)
Type: SystemString
Extension.
versionHistoryId (Optional)
Type: SystemInt32
Version history ID.
prefix (Optional)
Type: SystemString
URL prefix, if null, "getattachment" is used, the prefix must be supported by the URL rewriting engine.
variant (Optional)
Type: SystemString
Identifier of the attachment variant definition.

Return Value

Type: String
See Also