Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ClientSponsor Class

Provides a default implementation for a lifetime sponsor class.

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

System.Object
   System.MarshalByRefObject
      System.Runtime.Remoting.Lifetime.ClientSponsor

[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

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.

Remarks

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.

Requirements

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.