This documentation is archived and is not being maintained.

ClientSponsor Class

Provides a default implementation for a lifetime sponsor class.

For a list of all members of this type, see ClientSponsor Members.


[Visual Basic]
Public Class ClientSponsor
   Inherits MarshalByRefObject
   Implements ISponsor
public class ClientSponsor : MarshalByRefObject, ISponsor
public __gc class ClientSponsor : public MarshalByRefObject,
public class ClientSponsor extends MarshalByRefObject implements

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


The current lifetime sponsor implementation can be used to sponsor objects by specifying the required renewal TimeSpan.

Note   This class makes a link demand and an inheritance demand at the class level. A SecurityException is thrown when either the immediate caller or the derived class does not have infrastructure permission. For details about security demands, see Link Demands and Inheritance Demands.


Namespace: System.Runtime.Remoting.Lifetime

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Mscorlib (in Mscorlib.dll)

.NET Framework Security: 

See Also

ClientSponsor Members | System.Runtime.Remoting.Lifetime Namespace