MarshalByRefObject.GetLifetimeService MarshalByRefObject.GetLifetimeService MarshalByRefObject.GetLifetimeService Method

Definition

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

public:
 virtual System::Object ^ GetLifetimeService();
public object GetLifetimeService ();
Public Function GetLifetimeService () As Object
Returns

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

Exceptions

The immediate caller does not have infrastructure permission.

Remarks

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

Security

SecurityCriticalAttribute
requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.

Applies to