Click or drag to resize
HTMLHelperGetLink Method
Returns the HTML link element that links to a related document.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax
C#
public static string GetLink(
	string url,
	string type,
	string rel,
	string media,
	string title,
	string sizes = null
)

Parameters

url
Type: SystemString
URL pointing to external document.
type
Type: SystemString
(Optional) Specifies the MIME type of the linked document.
rel
Type: SystemString
(Optional) Relationship between the current document and the linked document.
media
Type: SystemString
(Optional) What device the linked document will be displayed on.
title
Type: SystemString
(Optional) Specifies extra information about an element.
sizes (Optional)
Type: SystemString
(Optional) Specifies size of files. This attribute is defined in HTML5.

Return Value

Type: String
HTML link to the related document
See Also