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 [C#] public class ClientSponsor : MarshalByRefObject, ISponsor [C++] public __gc class ClientSponsor : public MarshalByRefObject, ISponsor [JScript] public class ClientSponsor extends MarshalByRefObject implements ISponsor
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.
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:
- SecurityPermission for operating with infrastructure code. Demand value: SecurityAction.LinkDemand; Permission Value: SecurityPermissionFlag.Infrastructure
- SecurityPermission for operating with infrastructure code. Demand value: SecurityAction.InheritanceDemand; Permission Value: SecurityPermissionFlag.Infrastructure