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: 9.0.0
Syntax
C#
public string GetAttachmentItemUrl(
	Guid attachmentGuid,
	string attachmentName,
	string attachmentNodeAlias,
	int height,
	int width,
	int maxSideSize
)

Parameters

attachmentGuid
Type: SystemGuid
GUID of the attachment
attachmentName
Type: SystemString
Name of the attachment
attachmentNodeAlias
Type: SystemString
Attachment node alias
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