System.Runtime.Remoting.Messaging Namespace

The System.Runtime.Remoting.Messaging namespace contains classes used to create and transmit messages. The remoting infrastructure uses messages to communicate with remote objects. Messages are used to transmit remote method calls, to activate remote objects, and to communicate information. A message object carries a set of named properties, including action identifiers, envoy information, and parameters. Some of the most important classes of the System.Runtime.Remoting.Messaging namespace are the AsyncResult class, the RemotingSurrogateSelector class, and the ReturnMessage class.

The AsyncResult class stores and returns the results of an asynchronous method call. AsyncResult instances contain the return value, call status, the delegate used for the call, and the other information about the asynchronous method call.