MarshalByRefObject.GetLifetimeService Yöntem

Tanım

Dikkat

This Remoting API is not supported and throws PlatformNotSupportedException.

Bu örnek için yaşam süresi ilkesini denetleen geçerli yaşam süresi hizmet nesnesini alır.

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

Döndürülenler

Object

Bu örneğin yaşam süresi ilkesini denetlemek için kullanılan türünde ILease bir nesne.

Öznitelikler

Özel durumlar

Hemen çağıranın altyapı izni yok.

Yalnızca .NET Core ve .NET 5+ : Her durumda.

Açıklamalar

Bu yöntem .NET 5'te başlayarak kullanımdan kaldırıldı olarak işaretlenir.

Yaşam süresi hizmetleri hakkında daha fazla bilgi için sınıfına LifetimeServices bakın.

Şunlara uygulanır