ProcessProtocolHandler.InitializeLifetimeService 方法

定义

通过阻止创建租约来给予协议处理程序无限生存期。Gives the protocol handler an infinite lifetime by preventing a lease from being created.

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

public:
 override System::Object ^ InitializeLifetimeService();
public override object InitializeLifetimeService ();
override this.InitializeLifetimeService : unit -> obj
Public Overrides Function InitializeLifetimeService () As Object

返回

Object

用于控制此实例的生存期策略的对象。An object that is used to control the lifetime policy for this instance.

注解

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

适用于