View Source
Class UriUtility
Inheritance
System.Object
Assembly: Umbraco.Web.dll
Syntax
public static class UriUtility
Properties
View Source
AppPath
Declaration
public static string AppPath { get; }
Property Value
Type |
Description |
System.String |
|
View Source
AppPathPrefix
Declaration
public static string AppPathPrefix { get; }
Property Value
Type |
Description |
System.String |
|
Methods
View Source
EndPathWithSlash(String)
Declaration
public static string EndPathWithSlash(string uri)
Parameters
Type |
Name |
Description |
System.String |
uri |
|
Returns
Type |
Description |
System.String |
|
View Source
HasScheme(String)
Declaration
public static bool HasScheme(string uri)
Parameters
Type |
Name |
Description |
System.String |
uri |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
Declaration
public static Uri MediaUriFromUmbraco(Uri uri)
Parameters
Type |
Name |
Description |
System.Uri |
uri |
|
Returns
Type |
Description |
System.Uri |
|
View Source
ResolveUrl(String)
Declaration
public static string ResolveUrl(string relativeUrl)
Parameters
Type |
Name |
Description |
System.String |
relativeUrl |
|
Returns
Type |
Description |
System.String |
|
View Source
StartWithScheme(String)
Declaration
public static string StartWithScheme(string uri)
Parameters
Type |
Name |
Description |
System.String |
uri |
|
Returns
Type |
Description |
System.String |
|
View Source
StartWithScheme(String, String)
Declaration
public static string StartWithScheme(string uri, string scheme)
Parameters
Type |
Name |
Description |
System.String |
uri |
|
System.String |
scheme |
|
Returns
Type |
Description |
System.String |
|
View Source
ToAbsolute(String)
Declaration
public static string ToAbsolute(string url)
Parameters
Type |
Name |
Description |
System.String |
url |
|
Returns
Type |
Description |
System.String |
|
View Source
ToAppRelative(String)
Declaration
public static string ToAppRelative(string virtualPath)
Parameters
Type |
Name |
Description |
System.String |
virtualPath |
|
Returns
Type |
Description |
System.String |
|
View Source
TrimPathEndSlash(String)
Declaration
public static string TrimPathEndSlash(string uri)
Parameters
Type |
Name |
Description |
System.String |
uri |
|
Returns
Type |
Description |
System.String |
|
View Source
UriFromUmbraco(Uri, IGlobalSettings, IRequestHandlerSection)
Declaration
public static Uri UriFromUmbraco(Uri uri, IGlobalSettings globalSettings, IRequestHandlerSection requestConfig)
Parameters
Returns
Type |
Description |
System.Uri |
|
View Source
UriToUmbraco(Uri)
Declaration
public static Uri UriToUmbraco(Uri uri)
Parameters
Type |
Name |
Description |
System.Uri |
uri |
|
Returns
Type |
Description |
System.Uri |
|