Click or drag to resize
AttachmentURLProviderGetAttachmentUrl Method (Guid, String, String, Int32)

Note: This API is now obsolete.

Returns attachment URL.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 13.0.131
Syntax
C#
[ObsoleteAttribute("Use GetAttachmentUrl(Guid attachmentGuid, string fileName, int versionHistoryId = 0, string prefix = null, string variant = null) method instead.")]
public static string GetAttachmentUrl(
	Guid attachmentGuid,
	string safeFileName,
	string extension,
	int versionHistoryId
)

Parameters

attachmentGuid
Type: SystemGuid
Attachment GUID.
safeFileName
Type: SystemString
Attachment safe file name. Use GetSafeFileName(String, String) method to get file name in format suitable for URL.
extension
Type: SystemString
File extension.
versionHistoryId
Type: SystemInt32
ID of the document version for which the attachment version should be displayed.

Return Value

Type: String
See Also