// Create a lease object MyRemoteObject obj = new MyRemoteObject(); ILease lease = (ILease)obj.GetLifetimeService().InitializeLifetimeService(); // ... use the remote object ... // Un-register the lease lease.Unregister(obj);In this example, we create a remote object and initialize a lease object to manage its lifetime. After using the remote object, we explicitly un-register the lease using the Unregister method. The package library for this method is `System.Runtime.Remoting.Lifetime`.