_AppDomain.GetLifetimeService 方法

定义

为 COM 对象提供对继承的 GetLifetimeService() 方法的版本无关的访问。Provides COM objects with version-independent access to the inherited GetLifetimeService() method.

public:
 System::Object ^ GetLifetimeService();
[System.Security.SecurityCritical]
public object GetLifetimeService ();
abstract member GetLifetimeService : unit -> obj
Public Function GetLifetimeService () As Object

返回

ILease 类型的对象,用于控制此实例的生存期策略。An object of type ILease used to control the lifetime policy for this instance.

属性

注解

请参见MarshalByRefObject.GetLifetimeService方法。See the MarshalByRefObject.GetLifetimeService method.

安全性

SecurityCriticalAttribute
需要对直接调用方的完全信任。Requires full trust for the immediate caller. 部分受信任的或透明的代码不能使用此成员。This member cannot be used by partially trusted or transparent code.

适用于