System.Web.Hosting.HostingEnvironment: Method Members

The methods of System.Web.Hosting.HostingEnvironment are listed below. For a list of all members, see the HostingEnvironment Members list.

See Also: Inherited members from System.MarshalByRefObject

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.