This documentation is archived and is not being maintained.
HostingEnvironment Methods
Visual Studio 2010
The HostingEnvironment type exposes the following members.
| Name | Description | |
|---|---|---|
|
CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) |
|
DecrementBusyCount | Reduces the count of busy objects in the hosted environment by one. |
|
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
Impersonate() | Impersonates the user represented by the application identity. |
|
Impersonate(IntPtr) | Impersonates the user represented by the specified user token. |
|
Impersonate(IntPtr, String) | Impersonates the user specified by the configuration settings for the specified virtual path, or the specified user token. |
|
IncrementBusyCount | Increases the count of busy objects in the hosted environment by one. |
|
InitializeLifetimeService | Infrastructure. Gives the HostingEnvironment object an infinite lifetime by preventing a lease from being created. (Overrides MarshalByRefObject::InitializeLifetimeService().) |
|
InitiateShutdown | Starts shutting down the Web application associated with this host and removes registered objects from the system. |
|
MapPath | Maps a virtual path to a physical path on the server. |
|
MemberwiseClone() | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) |
|
MessageReceived | This method supports the ASP.NET infrastructure and is not intended to be used directly from your code. |
|
RegisterObject | Places an object in the list of registered objects for the application. |
|
RegisterVirtualPathProvider | Registers a new VirtualPathProvider instance with the ASP.NET compilation system. |
|
SetCultures() | Sets the current thread to the culture specified in the application configuration file. |
|
SetCultures(String) | Sets the current thread to the culture of the specified virtual path. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
|
UnregisterObject | Removes an object from the list of registered objects for the application. |
Show: