Retrieves the current lifetime service object that controls the lifetime policy for this instance.
[Visual Basic]
Public Overridable Function GetLifetimeService() As Object
[C#]
public virtual object GetLifetimeService();
[C++]
public: virtual Object* GetLifetimeService();
[JScript]
public function GetLifetimeService() : Object;
Return Value
An object of type ILease used to control the lifetime policy for this instance.
Exceptions
| Exception Type | Condition |
| SecurityException | The immediate caller does not have infrastructure permission. |
Remarks
For more information about lifetime services, see the LifetimeServices class.
Requirements
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