System.Web.Hosting.HostingEnvironment Members

The members of System.Web.Hosting.HostingEnvironment are listed below.

See Also: Inherited members from System.MarshalByRefObject

Public Constructors

Initializes a new instance of the System.Web.Hosting.HostingEnvironment class.

Public Properties

[read-only]
static
ApplicationIDstring.

Gets the unique identifier of the application.

[read-only]
static
ApplicationPhysicalPathstring.

Gets the physical path on disk to the application's directory.

[read-only]
static
ApplicationVirtualPathstring.

Gets the root virtual path of the application.

[read-only]
static
CacheSystem.Web.Caching.Cache.

Gets the System.Web.Caching.Cache instance for the current application.

[read-only]
static
InitializationExceptionException.

Gets any exception thrown during initialization of the System.Web.Hosting.HostingEnvironment object.

[read-only]
static
IsHostedbool.

Gets a value indicating whether the current application domain is being hosted by an System.Web.Hosting.ApplicationManager object.

[read-only]
static
ShutdownReasonSystem.Web.ApplicationShutdownReason.

Returns an enumerated value that indicates why the application terminated.

[read-only]
static
SiteNamestring.

Gets the name of the site.

[read-only]
static
VirtualPathProviderVirtualPathProvider.

Gets the virtual path provider for this application.

Public Methods

static
DecrementBusyCount()

Reduces the count of busy objects in the hosted environment by one.

static
Impersonate() : IDisposable

Impersonates the user represented by the application identity.

static
Impersonate(IntPtr) : IDisposable

Impersonates the user represented by the specified user token.

static
Impersonate(IntPtr, string) : IDisposable

Impersonates the user specified by the configuration settings for the specified virtual path, or the specified user token.

static
IncrementBusyCount()

Increases the count of busy objects in the hosted environment by one.

override
InitializeLifetimeService() : object

Gives the System.Web.Hosting.HostingEnvironment object an infinite lifetime by preventing a lease from being created.

static
InitiateShutdown()

Starts shutting down the web application associated with this host and removes registered objects from the system.

static
MapPath(string) : string

Maps a virtual path to a physical path on the server.

static
RegisterObject(IRegisteredObject)

Places an object in the list of registered objects for the application.

static
RegisterVirtualPathProvider(VirtualPathProvider)

Registers a new System.Web.Hosting.VirtualPathProvider instance with the ASP.NET compilation system.

static
SetCultures() : IDisposable

Sets the current thread to the culture specified in the application configuration file.

static
SetCultures(string) : IDisposable

Sets the current thread to the culture of the specified virtual path.

static
UnregisterObject(IRegisteredObject)

Removes an object from the list of registered objects for the application.