MarshalByRefObject.GetLifetimeService Method

Definition

Recupera el objeto de servicio de duración actual que controla la directiva de duración de esta instancia.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
Public Function GetLifetimeService () As Object

Returns

Object

Objeto de tipo ILease utilizado para controlar la directiva de duración de esta instancia.An object of type ILease used to control the lifetime policy for this instance.

Attributes

Exceptions

El llamador inmediato no tiene permisos de infraestructura.The immediate caller does not have infrastructure permission.

Remarks

Para obtener más información sobre los servicios de duración, vea la clase LifetimeServices.For more information about lifetime services, see the LifetimeServices class.

Applies to