Interface IHostingEnvironment
Helper class to get access to web hosting environment variables
Namespace: EPiServer.Web.Hosting
Assembly: EPiServer.Framework.AspNet.dll
Version: 11.20.7Syntax
public interface IHostingEnvironment
Properties
ApplicationID
Gets the unique identifier of the application.
Declaration
string ApplicationID { get; }
Property Value
Type | Description |
---|---|
System.String | The application ID. |
ApplicationPhysicalPath
Gets the physical path on disk to the application's directory.
Declaration
string ApplicationPhysicalPath { get; }
Property Value
Type | Description |
---|---|
System.String | The application physical path. |
ApplicationVirtualPath
Gets the root virtual path of the application.
Declaration
string ApplicationVirtualPath { get; }
Property Value
Type | Description |
---|---|
System.String | The application virtual path. |
VirtualPathProvider
Gets the virtual path provider for this application.
Declaration
VirtualPathProvider VirtualPathProvider { get; }
Property Value
Type | Description |
---|---|
System.Web.Hosting.VirtualPathProvider | The virtual path provider. |
Methods
MapPath(String)
Maps a virtual path to a physical path on the server.
Declaration
string MapPath(string virtualPath)
Parameters
Type | Name | Description |
---|---|---|
System.String | virtualPath | The virtual path (absolute or relative). |
Returns
Type | Description |
---|---|
System.String | The physical path on the server specified by the virtualPath parameter. |
RegisterVirtualPathProvider(VirtualPathProvider)
Registers a new virtual path provider with the ASP.NET compilation system.
Declaration
void RegisterVirtualPathProvider(VirtualPathProvider virtualPathProvider)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Hosting.VirtualPathProvider | virtualPathProvider | The virtual path provider. |