This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Implements the IMethodReturnMessage interface to create a message that acts as a method response on a remote object.
This API is not CLS-compliant. System.Runtime.Remoting.Messaging
Assembly: mscorlib (in mscorlib.dll)
[SerializableAttribute] [ComVisibleAttribute(true)] [CLSCompliantAttribute(false)] [SecurityPermissionAttribute(SecurityAction.InheritanceDemand, Flags = SecurityPermissionFlag.Infrastructure)] public class MethodResponse : IMethodReturnMessage, IMethodMessage, IMessage, ISerializable
Thetype exposes the following members.
|ArgCount||Infrastructure. Gets the number of arguments passed to the method.|
|Args||Infrastructure. Gets an array of arguments passed to the method.|
|Exception||Infrastructure. Gets the exception thrown during the method call, or null if the method did not throw an exception.|
|HasVarArgs||Infrastructure. Gets a value that indicates whether the method can accept a variable number of arguments.|
|LogicalCallContext||Infrastructure. Gets the LogicalCallContext for the current method call.|
|MethodBase||Infrastructure. Gets the MethodBase of the called method.|
|MethodName||Infrastructure. Gets the name of the invoked method.|
|MethodSignature||Infrastructure. Gets an object that contains the method signature.|
|OutArgCount||Infrastructure. Gets the number of arguments in the method call marked as ref or out parameters.|
|OutArgs||Infrastructure. Gets an array of arguments in the method call that are marked as ref or out parameters.|
|Properties||Infrastructure. Gets an IDictionary interface that represents a collection of the remoting message's properties.|
|ReturnValue||Infrastructure. Gets the return value of the method call.|
|TypeName||Infrastructure. Gets the full type name of the remote object on which the method call is being made.|
|Uri||Infrastructure. Gets the Uniform Resource Identifier (URI) of the remote object on which the method call is being made.|
|Equals(Object)||Determines whether the specified object is equal to the current object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetArg||Infrastructure. Gets a method argument, as an object, at a specified index.|
|GetArgName||Infrastructure. Gets the name of a method argument at a specified index.|
|GetHashCode||Serves as the default hash function. (Inherited from Object.)|
|GetObjectData||Infrastructure. The GetObjectData method is not implemented.|
|GetOutArg||Infrastructure. Returns the specified argument marked as a ref parameter or an out parameter.|
|GetOutArgName||Infrastructure. Returns the name of the specified argument marked as a ref parameter or an out parameter.|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|HeaderHandler||Infrastructure. Initializes an internal serialization handler from an array of remoting headers that are applied to a method.|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|RootSetObjectData||Infrastructure. Sets method information from serialization settings.|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
A is generated as a result of a method called on a remote object, and is used to return the results of the method call back to the caller. The message includes a return value and out arguments.
The class is used by the remoting infrastructure of the .NET Framework. You do not need to create an instance of the class directly; instead, use the IMethodReturnMessage interface.
contains remoting data at the end of the message sink. A remoting server returns a message to a client.