ClientBuildManager.InitializeLifetimeService 方法

定义

通过防止创建租约来给予应用程序域无限生存期。Gives the application domain an infinite lifetime by preventing a lease from being created.

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

返回

始终为 nullAlways null.

注解

此方法会重写其基类中的 InitializeLifetimeService 方法。This method overrides the InitializeLifetimeService method in its base class. 它始终返回 null,从而防止创建将限制应用程序域生存期的租约。It always returns null and thereby prevents a lease from being created that would limit the application domain's lifetime.

适用于

另请参阅