Geta.EPi.Extensions : API Documentation

Type UrlExtensions

Namespace Geta.EPi.Extensions

Url extensions.

Methods

Public static methods

Uri ToAbsoluteUri(this Url url)

Creates external Uri from provided Url. Uses HttpContext if available, othervise uses EPiServer SiteDefinition SiteUrl.
Parameters
Url url
Url for which to create Uri.
Returns
Uri
External Uri for Url.

IHtmlString ToIHtmlString(this Url url)

Creates Html string of provided Url.
Parameters
Url url
Url for which to create Html string.
Returns
IHtmlString
Html string with Url if Url is not null. Otherwise returns empty string.