MarshalByRefObject.GetLifetimeService Methode

Definitie

Let op

This Remoting API is not supported and throws PlatformNotSupportedException.

Hiermee haalt u het huidige levensduurserviceobject op waarmee het levensduurbeleid voor dit exemplaar wordt beheerd.

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

Retouren

Een object van het type ILease dat wordt gebruikt om het levensduurbeleid voor dit exemplaar te beheren.

Kenmerken

Uitzonderingen

De directe beller heeft geen infrastructuurmachtiging.

.NET Core en .NET 5+ alleen: in alle gevallen.

Opmerkingen

Deze methode is gemarkeerd als verouderd vanaf .NET 5.

Zie de LifetimeServices klasse voor meer informatie over levensduurservices.

Van toepassing op