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

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 8.2.23
Syntax
C#
public static string GetAttachmentUrl(
	Guid attachmentGuid,
	string nodeAlias,
	string extension = null,
	int versionHistoryId = 0,
	string prefix = 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, "getdoc" is used, the prefix must be supported by the URL rewriting engine

Return Value

Type: String
See Also