System.Runtime.Remoting.RemotingServices.ExecuteMessage Method

Connects to the specified remote object, and executes the provided System.Runtime.Remoting.Messaging.IMethodCallMessage on it.

Syntax

public static System.Runtime.Remoting.Messaging.IMethodReturnMessage ExecuteMessage (MarshalByRefObject target, System.Runtime.Remoting.Messaging.IMethodCallMessage reqMsg)

Parameters

target
The remote object whose method you want to call.
reqMsg
A method call message to the specified remote object's method.

Returns

The response of the remote method.

Remarks

The current method is used in special cases by the server to forward the specified method call to another, possibly remote, object. This method can be called only when the caller is in the appropriate context.

Requirements

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