Click or drag to resize
AttachmentURLProviderGetPermanentAttachmentUrl Method
Returns attachment URL.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 12.0.0
Syntax
C#
public static string GetPermanentAttachmentUrl(
	Guid nodeGuid,
	string safeFileName,
	string extension = null,
	string variant = null
)

Parameters

nodeGuid
Type: SystemGuid
Node GUID.
safeFileName
Type: SystemString
Attachment safe file name. Use GetSafeFileName(String, String) method to get file name in format suitable for URL.
extension (Optional)
Type: SystemString
File extension. If not provided, default friendly extension is used from global settings.
variant (Optional)
Type: SystemString
Identifier of the attachment variant definition.

Return Value

Type: String
See Also