View Source
Class UriUtility
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public sealed class UriUtility
Constructors
View Source
UriUtility(IHostingEnvironment)
Declaration
public UriUtility(IHostingEnvironment hostingEnvironment)
Parameters
Properties
View Source
AppPath
Declaration
public string AppPath { get; }
Property Value
Type |
Description |
System.String |
|
View Source
AppPathPrefix
Declaration
public string AppPathPrefix { get; }
Property Value
Type |
Description |
System.String |
|
Methods
View Source
Declaration
public Uri MediaUriFromUmbraco(Uri uri)
Parameters
Type |
Name |
Description |
Uri |
uri |
|
Returns
View Source
ResolveUrl(String)
Declaration
public string ResolveUrl(string relativeUrl)
Parameters
Type |
Name |
Description |
System.String |
relativeUrl |
|
Returns
Type |
Description |
System.String |
|
View Source
ToAbsolute(String)
Declaration
public string ToAbsolute(string url)
Parameters
Type |
Name |
Description |
System.String |
url |
|
Returns
Type |
Description |
System.String |
|
View Source
ToAppRelative(String)
Declaration
public string ToAppRelative(string virtualPath)
Parameters
Type |
Name |
Description |
System.String |
virtualPath |
|
Returns
Type |
Description |
System.String |
|
View Source
UriFromUmbraco(Uri, RequestHandlerSettings)
Declaration
public Uri UriFromUmbraco(Uri uri, RequestHandlerSettings requestConfig)
Parameters
Returns
View Source
UriToUmbraco(Uri)
Declaration
public Uri UriToUmbraco(Uri uri)
Parameters
Type |
Name |
Description |
Uri |
uri |
|
Returns