MarshalByRefObject.GetLifetimeService Método

Definição

Atenção

This Remoting API is not supported and throws PlatformNotSupportedException.

Recupera o objeto de serviço de tempo de vida atual que controla a política de vida útil neste caso.

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

Devoluções

Um objeto do tipo ILease usado para controlar a apólice vitalícia neste caso.

Atributos

Exceções

O interlocutor imediato não tem autorização para infraestruturas.

.NET Core e .NET 5+ apenas: Em todos os casos.

Observações

Este método é considerado obsoleto a partir do .NET 5.

Para mais informações sobre serviços vitalícios, consulte a LifetimeServices aula.

Aplica-se a