Click or drag to resize
ContentMediaViewGetAttachmentItemUrl Method
Returns URL for the attachment specified by arguments.

Namespace: CMS.UIControls
Assembly: CMS.UIControls (in CMS.UIControls.dll) Version: 13.0.131
Syntax
C#
public string GetAttachmentItemUrl(
	Guid attachmentGuid,
	string attachmentName,
	int height,
	int width,
	int maxSideSize
)

Parameters

attachmentGuid
Type: SystemGuid
GUID of the attachment
attachmentName
Type: SystemString
Name of the attachment
height
Type: SystemInt32
Height of the attachment
width
Type: SystemInt32
Width of the attachment
maxSideSize
Type: SystemInt32
Maximum size of the item if attachment is image

Return Value

Type: String
See Also