This documentation is archived and is not being maintained.
MarshalByRefObject.GetLifetimeService Method
.NET Framework 1.1
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:
- SecurityPermission for operating with infrastructure code. Associated enumeration: SecurityPermissionFlag.Infrastructure
See Also
MarshalByRefObject Class | MarshalByRefObject Members | System Namespace
Show: