This documentation is archived and is not being maintained.

RealProxy Class

Provides base functionality for proxies.

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

System.Object
   System.Runtime.Remoting.Proxies.RealProxy

[Visual Basic]
MustInherit Public Class RealProxy
[C#]
public abstract class RealProxy
[C++]
public __gc __abstract class RealProxy
[JScript]
public abstract class RealProxy

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 RealProxy class is the abstract (MustInherit in Visual Basic) base class from which proxies must derive.

A client that uses an object across any kind of a remoting boundary is actually using a transparent proxy for the object. The transparent proxy provides the illusion that the actual object resides in the client's space. It achieves this by forwarding calls made on it to the real object using the remoting infrastructure.

The transparent proxy is itself housed by an instance of a managed runtime class of type RealProxy. The RealProxy implements a part of the functionality needed to forward the operations from the transparent proxy. Note that a proxy object inherits the associated semantics of managed objects such as garbage collection, support for fields and methods, and can be extended to form new classes. The proxy has a dual nature: it acts as an object of the same class as the remote object (transparent proxy), and it is a managed object itself.

A proxy object can be used without regard to any remoting subdivisions within an AppDomain.

Notes to Inheritors:  When you inherit from RealProxy, you must override the Invoke method.

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.Proxies

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

RealProxy Members | System.Runtime.Remoting.Proxies Namespace

Show: