MarshalByRefObject.GetLifetimeService Method

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

[Visual Basic]
Public Overridable Function GetLifetimeService() As Object
public virtual object GetLifetimeService();
public: virtual Object* GetLifetimeService();
public function GetLifetimeService() : Object;

Return Value

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


Exception Type Condition
SecurityException The immediate caller does not have infrastructure permission.


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


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

MarshalByRefObject Class | MarshalByRefObject Members | System Namespace