Retrieves the current lifetime service object that controls the lifetime policy for this instance.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Function GetLifetimeService() As System.Object |
| C# | |
|---|
public System.object GetLifetimeService() |
Return Value
An object of type
System.Runtime.Remoting.Lifetime.ILease used to control the lifetime policy for this instance.
Exceptions
| Exception | Description |
| System.Security.SecurityException | The immediate caller does not have infrastructure permission. |
Requirements
Target Platforms: Current Windows operating system with .NET 8.
See Also