This documentation is archived and is not being maintained.

ProcessHost Class

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

Represents a process host.


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

public sealed class ProcessHost : MarshalByRefObject, 
	IProcessHost, IAdphManager, IPphManager, IProcessHostIdleAndHealthCheck, IApplicationPreloadManager

The ProcessHost type exposes the following members.

Public methodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public methodEnumerateAppDomainsProvides access to an enumerable set of application domains.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodInitializeLifetimeServiceInfrastructure. Gives the process host an infinite lifetime by preventing a lease from being created. (Overrides MarshalByRefObject.InitializeLifetimeService().)
Public methodIsIdleInfrastructure. Gets the state of a process.
Protected methodMemberwiseClone()Creates a shallow copy of the current Object. (Inherited from Object.)
Protected methodMemberwiseClone(Boolean)Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.)
Public methodPingInfrastructure. Pings a process.
Public methodSetApplicationPreloadStateNotifies ASP.NET that a particular application that is running on IIS 7.0 is configured to be preloaded.
Public methodSetApplicationPreloadUtilCreates a type that calls IIS 7.0 to get information that is required in order to preload an application.
Public methodShutdownUnloads the process host.
Public methodShutdownApplicationInfrastructure. Shuts down the specified application.
Public methodStartAppDomainProtocolListenerChannelStarts an application domain protocol listener channel.
Public methodStartApplicationStarts the specified application.
Public methodStartProcessProtocolListenerChannelStarts a process protocol listener channel.
Public methodStopAppDomainProtocolInfrastructure. Stops an application domain protocol listener channel.
Public methodStopAppDomainProtocolListenerChannelStops an application domain protocol listener channel.
Public methodStopProcessProtocolInfrastructure. Stops a process protocol.
Public methodStopProcessProtocolListenerChannelStops a protocol listener channel.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

ProcessHost is introduced in the .NET Framework version 3.5. For more information, see .NET Framework Versions and Dependencies.

.NET Framework

Supported in: 4, 3.5 SP1, 3.0 SP1, 2.0 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.