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.
- msg
- A System.Runtime.Remoting.Messaging.IMessage that contains a IDictionary of information about the method call.
The message returned by the invoked method, containing the return value and any out or ref parameters.
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.