System.Runtime.Remoting.Proxies.RealProxy.Invoke Method

When overridden in a derived class, invokes the method that is specified in the provided System.Runtime.Remoting.Messaging.IMessage on the remote object that is represented by the current instance.

Syntax

public abstract System.Runtime.Remoting.Messaging.IMessage Invoke (System.Runtime.Remoting.Messaging.IMessage msg)

Parameters

msg
A System.Runtime.Remoting.Messaging.IMessage that contains a IDictionary of information about the method call.

Returns

The message returned by the invoked method, containing the return value and any out or ref parameters.

Remarks

When the transparent proxy that is backed by the System.Runtime.Remoting.Proxies.RealProxy is called, it delegates the calls to the RealProxy.Invoke(System.Runtime.Remoting.Messaging.IMessage) method. The RealProxy.Invoke(System.Runtime.Remoting.Messaging.IMessage) method transforms the message in the msg parameter into a System.Runtime.Remoting.Messaging.IMethodCallMessage, and sends it to the remote object that is represented by the current instance of System.Runtime.Remoting.Proxies.RealProxy.

The System.Runtime.Remoting.Messaging.IMessage parameter provides a dictionary through the System.Runtime.Remoting.Messaging.IMessage.Properties property. The dictionary contains name/value pairs of information about the method call, such as the name of the method called and its parameters.

Requirements

Namespace: System.Runtime.Remoting.Proxies
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0