HostingEnvironment Methods

HostingEnvironment Methods

 

Namespace:   System.Web.Hosting
Assembly:  System.Web (in System.Web.dll)

NameDescription
System_CAPS_pubmethodCreateObjRef(Type)

Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodSystem_CAPS_staticDecrementBusyCount()

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

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetLifetimeService()

Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticImpersonate()

Impersonates the user represented by the application identity.

System_CAPS_pubmethodSystem_CAPS_staticImpersonate(IntPtr)

Impersonates the user represented by the specified user token.

System_CAPS_pubmethodSystem_CAPS_staticImpersonate(IntPtr, String)

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

System_CAPS_pubmethodSystem_CAPS_staticIncrementBusyCount()

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

System_CAPS_pubmethodInitializeLifetimeService()

This API supports the product infrastructure and is not intended to be used directly from your code. Gives the HostingEnvironment object an infinite lifetime by preventing a lease from being created.(Overrides MarshalByRefObject.InitializeLifetimeService().)

System_CAPS_pubmethodSystem_CAPS_staticInitiateShutdown()

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

System_CAPS_pubmethodSystem_CAPS_staticMapPath(String)

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

System_CAPS_pubmethodSystem_CAPS_staticMessageReceived()

This method supports the ASP.NET infrastructure and is not intended to be used directly from your code.

System_CAPS_pubmethodSystem_CAPS_staticQueueBackgroundWorkItem(Action<CancellationToken>)

[Supported in the .NET Framework 4.5.2 and later versions]

Schedules a task which can run in the background, independent of any request.

System_CAPS_pubmethodSystem_CAPS_staticQueueBackgroundWorkItem(Func<CancellationToken, Task>)

[Supported in the .NET Framework 4.5.2 and later versions]

Schedules a task which can run in the background, independent of any request.

System_CAPS_pubmethodSystem_CAPS_staticRegisterObject(IRegisteredObject)

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

System_CAPS_pubmethodSystem_CAPS_staticRegisterVirtualPathProvider(VirtualPathProvider)

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

System_CAPS_pubmethodSystem_CAPS_staticSetCultures()

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

System_CAPS_pubmethodSystem_CAPS_staticSetCultures(String)

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

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticUnregisterObject(IRegisteredObject)

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

Return to top
Show:
© 2016 Microsoft