MarshalByRefObject.GetLifetimeService 메서드
정의
이 인스턴스의 수명 정책을 제어하는 현재의 수명 서비스 개체를 검색합니다.Retrieves the current lifetime service object that controls the lifetime policy for this instance.
public:
System::Object ^ GetLifetimeService();
public:
virtual System::Object ^ GetLifetimeService();
public object GetLifetimeService ();
[System.Security.SecurityCritical]
public object GetLifetimeService ();
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
반환
ILease 형식의 개체는 이 인스턴스의 수명 정책을 제어하는 데 사용됩니다.An object of type ILease used to control the lifetime policy for this instance.
- 특성
예외
직접 실행 호출자에 인프라 권한이 없는 경우The immediate caller does not have infrastructure permission.
.NET Core 및 .NET 5+ 전용: 모든 경우.NET Core and .NET 5+ only: In all cases.
설명
이 메서드는 .NET 5.0부터 사용 되지 않는 것으로 표시 되었습니다.This method is marked obsolete starting in .NET 5.0.
수명 서비스에 대 한 자세한 내용은 클래스를 참조 하세요 LifetimeServices .For more information about lifetime services, see the LifetimeServices class.