Click or drag to resize
AttachmentURLProviderGetFilePhysicalUrl Method
Gets the URL to the physical file.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 12.0.0
Syntax
C#
public static string GetFilePhysicalUrl(
	string siteName,
	string guid,
	string extension = null,
	int width = 0,
	int height = 0
)

Parameters

siteName
Type: SystemString
File site name.
guid
Type: SystemString
Attachment GUID.
extension (Optional)
Type: SystemString
File extension. If not provided, default friendly extension is used from global settings.
width (Optional)
Type: SystemInt32
Image width in pixels.
height (Optional)
Type: SystemInt32
Image height in pixels.

Return Value

Type: String
See Also