MarshalByRefObject.GetLifetimeService Method

Definition

Retrieves the current lifetime service object that controls the lifetime policy for this instance.

public:
 virtual System::Object ^ GetLifetimeService();
[System.Security.SecurityCritical]
public object GetLifetimeService ();
abstract member GetLifetimeService : unit -> obj
override this.GetLifetimeService : unit -> obj
Public Function GetLifetimeService () As Object

Returns

An object of type ILease used to control the lifetime policy for this instance.

Attributes

Exceptions

The immediate caller does not have infrastructure permission.

Remarks

For more information about lifetime services, see the LifetimeServices class.

Applies to