MarshalByRefObject.GetLifetimeService 메서드

정의

주의

This Remoting API is not supported and throws PlatformNotSupportedException.

이 인스턴스의 수명 정책을 제어하는 현재의 수명 서비스 개체를 검색합니다.

public:
 System::Object ^ GetLifetimeService();
public:
 virtual System::Object ^ GetLifetimeService();
[System.Obsolete("This Remoting API is not supported and throws PlatformNotSupportedException.", DiagnosticId="SYSLIB0010", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public object GetLifetimeService ();
public object GetLifetimeService ();
[System.Security.SecurityCritical]
public object GetLifetimeService ();
[<System.Obsolete("This Remoting API is not supported and throws PlatformNotSupportedException.", DiagnosticId="SYSLIB0010", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
member this.GetLifetimeService : unit -> obj
member this.GetLifetimeService : unit -> obj
abstract member GetLifetimeService : unit -> obj
override this.GetLifetimeService : unit -> obj
[<System.Security.SecurityCritical>]
abstract member GetLifetimeService : unit -> obj
override this.GetLifetimeService : unit -> obj
Public Function GetLifetimeService () As Object

반환

Object

ILease 형식의 개체는 이 인스턴스의 수명 정책을 제어하는 데 사용됩니다.

특성

예외

직접 실행 호출자에 인프라 권한이 없는 경우

.NET Core 및 .NET 5+ 전용: 모든 경우

설명

이 메서드는 .NET 5부터 사용되지 않는 것으로 표시됩니다.

수명 서비스에 대한 자세한 내용은 클래스를 LifetimeServices 참조하세요.

적용 대상