ObjectHandle.InitializeLifetimeService 方法

定义

初始化被包装的对象的生存期租约。

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

返回

初始化的 ILease,它使您可以控制被包装对象的生存期。

属性

适用于