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
- Attributes
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.