System.Runtime.Remoting.RemotingServices.GetLifetimeService Method

Returns a lifetime service object that controls the lifetime policy of the specified object.

Syntax

public static object GetLifetimeService (MarshalByRefObject obj)

Parameters

obj
The object to obtain lifetime service for.

Returns

The object that controls the lifetime of obj.

Remarks

For the default lifetime service the returned object will be an object of type System.Runtime.Remoting.Lifetime.ILease. If the obj parameter is null, the method returns null.

Requirements

Namespace: System.Runtime.Remoting
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0