Export (0) Print
Expand All

HostingEnvironment Methods

The HostingEnvironment type exposes the following members.

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

Community Additions

ADD
Show:
© 2014 Microsoft