View Source
Class IOHelper
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public static class IOHelper
Properties
View Source
DirSepChar
Declaration
public static char DirSepChar { get; }
Property Value
Type |
Description |
System.Char |
|
View Source
ForceNotHosted
Gets or sets a value forcing Umbraco to consider it is non-hosted.
Declaration
public static bool ForceNotHosted { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
View Source
IsHosted
Gets a value indicating whether Umbraco is hosted.
Declaration
public static bool IsHosted { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
View Source
EnsurePathExists(String)
Declaration
public static void EnsurePathExists(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
View Source
FindFile(String)
Declaration
public static string FindFile(string virtualPath)
Parameters
Type |
Name |
Description |
System.String |
virtualPath |
|
Returns
Type |
Description |
System.String |
|
View Source
MapPath(String)
Declaration
public static string MapPath(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.String |
|
View Source
MapPath(String, Boolean)
Declaration
public static string MapPath(string path, bool useHttpContext)
Parameters
Type |
Name |
Description |
System.String |
path |
|
System.Boolean |
useHttpContext |
|
Returns
Type |
Description |
System.String |
|
View Source
PathStartsWith(String, String, Char)
Declaration
public static bool PathStartsWith(string path, string root, char separator)
Parameters
Type |
Name |
Description |
System.String |
path |
|
System.String |
root |
|
System.Char |
separator |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
ResolveUrl(String)
Declaration
public static string ResolveUrl(string virtualPath)
Parameters
Type |
Name |
Description |
System.String |
virtualPath |
|
Returns
Type |
Description |
System.String |
|
View Source
ResolveVirtualUrl(String)
Declaration
public static string ResolveVirtualUrl(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.String |
|
View Source
TryResolveUrl(String)
Declaration
public static Attempt<string> TryResolveUrl(string virtualPath)
Parameters
Type |
Name |
Description |
System.String |
virtualPath |
|
Returns
Type |
Description |
Attempt<System.String> |
|