ProcessHost 类

定义

表示一个进程宿主。Represents a process host.

此 API 支持产品基础结构,不能在代码中直接使用。

public ref class ProcessHost sealed : MarshalByRefObject, System::Web::Hosting::IAdphManager, System::Web::Hosting::IApplicationPreloadManager, System::Web::Hosting::IPphManager, System::Web::Hosting::IProcessHost, System::Web::Hosting::IProcessHostIdleAndHealthCheck
public sealed class ProcessHost : MarshalByRefObject, System.Web.Hosting.IAdphManager, System.Web.Hosting.IApplicationPreloadManager, System.Web.Hosting.IPphManager, System.Web.Hosting.IProcessHost, System.Web.Hosting.IProcessHostIdleAndHealthCheck
type ProcessHost = class
    inherit MarshalByRefObject
    interface IProcessHost
    interface IAdphManager
    interface IPphManager
    interface IProcessHostIdleAndHealthCheck
    interface IApplicationPreloadManager
Public NotInheritable Class ProcessHost
Inherits MarshalByRefObject
Implements IAdphManager, IApplicationPreloadManager, IPphManager, IProcessHost, IProcessHostIdleAndHealthCheck
继承
实现

注解

ProcessHost.NET Framework 3.5.NET Framework 3.5中引入。ProcessHost is introduced in the .NET Framework 3.5.NET Framework 3.5. 有关详细信息,请参见版本和依赖关系For more information, see Versions and Dependencies.

方法

CreateObjRef(Type)

创建一个对象,该对象包含生成用于与远程对象进行通信的代理所需的全部相关信息。Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(继承自 MarshalByRefObject)
EnumerateAppDomains(IAppDomainInfoEnum)

提供对可枚举的应用程序域集合的访问。Provides access to an enumerable set of application domains.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetLifetimeService()

检索控制此实例的生存期策略的当前生存期服务对象。Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(继承自 MarshalByRefObject)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
InitializeLifetimeService()

通过阻止创建租约来给予进程宿主无限生存期。Gives the process host an infinite lifetime by preventing a lease from being created.

IsIdle()

获取进程的状态。Gets the state of a process.

MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
MemberwiseClone(Boolean)

创建当前 MarshalByRefObject 对象的浅表副本。Creates a shallow copy of the current MarshalByRefObject object.

(继承自 MarshalByRefObject)
Ping(IProcessPingCallback)

对进程执行 Ping 操作。Pings a process.

SetApplicationPreloadState(String, String, Boolean)

通知 ASP.NET 正在 IIS 7.0IIS 7.0 上运行的某个特定应用程序配置为预加载。Notifies ASP.NET that a particular application that is running on IIS 7.0IIS 7.0 is configured to be preloaded.

SetApplicationPreloadUtil(IApplicationPreloadUtil)

创建一个类型,该类型调用 IIS 7.0IIS 7.0 以获取预加载应用程序所需的信息。Creates a type that calls IIS 7.0IIS 7.0 to get information that is required in order to preload an application.

Shutdown()

卸载进程宿主。Unloads the process host.

ShutdownApplication(String)

关闭指定的应用程序。Shuts down the specified application.

StartAppDomainProtocolListenerChannel(String, String, IListenerChannelCallback)

启动应用程序域协议侦听器通道。Starts an application domain protocol listener channel.

StartApplication(String, String, Object)

启动指定的应用程序。Starts the specified application.

StartProcessProtocolListenerChannel(String, IListenerChannelCallback)

启动协议侦听器通道。Starts a process protocol listener channel.

StopAppDomainProtocol(String, String, Boolean)

停止应用程序域协议侦听器通道。Stops an application domain protocol listener channel.

StopAppDomainProtocolListenerChannel(String, String, Int32, Boolean)

停止应用程序域协议侦听器通道。Stops an application domain protocol listener channel.

StopProcessProtocol(String, Boolean)

停止进程协议。Stops a process protocol.

StopProcessProtocolListenerChannel(String, Int32, Boolean)

停止协议侦听器通道。Stops a protocol listener channel.

ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于