MethodResponse MethodResponse MethodResponse MethodResponse Class

Definition

Important

This API is not CLS-compliant.

Implements the IMethodReturnMessage interface to create a message that acts as a method response on a remote object.

This API supports the product infrastructure and is not intended to be used directly from your code.

public ref class MethodResponse : System::Runtime::Remoting::Messaging::IMethodReturnMessage, System::Runtime::Serialization::ISerializable
[System.CLSCompliant(false)]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Security.SecurityCritical]
[System.Serializable]
public class MethodResponse : System.Runtime.Remoting.Messaging.IMethodReturnMessage, System.Runtime.Serialization.ISerializable
type MethodResponse = class
    interface IMethodReturnMessage
    interface ISerializable
    interface IMethodMessage
    interface IMessage
Public Class MethodResponse
Implements IMethodReturnMessage, ISerializable
Inheritance
MethodResponseMethodResponseMethodResponseMethodResponse
Derived
Attributes
Implements

Remarks

A MethodResponse 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 MethodResponse class is used by the remoting infrastructure of the .NET Framework. You do not need to create an instance of the MethodResponse class directly; instead, use the IMethodReturnMessage interface.

MethodResponse contains remoting data at the end of the message sink. A remoting server returns a MethodResponse message to a client.

Constructors

MethodResponse(Header[], IMethodCallMessage) MethodResponse(Header[], IMethodCallMessage) MethodResponse(Header[], IMethodCallMessage) MethodResponse(Header[], IMethodCallMessage)

Initializes a new instance of the MethodResponse class from an array of remoting headers and a request message.

Fields

ExternalProperties ExternalProperties ExternalProperties ExternalProperties

Specifies an IDictionary interface that represents a collection of the remoting message's properties.

InternalProperties InternalProperties InternalProperties InternalProperties

Specifies an IDictionary interface that represents a collection of the remoting message's properties.

Properties

ArgCount ArgCount ArgCount ArgCount

Gets the number of arguments passed to the method.

Args Args Args Args

Gets an array of arguments passed to the method.

Exception Exception Exception Exception

Gets the exception thrown during the method call, or null if the method did not throw an exception.

HasVarArgs HasVarArgs HasVarArgs HasVarArgs

Gets a value that indicates whether the method can accept a variable number of arguments.

LogicalCallContext LogicalCallContext LogicalCallContext LogicalCallContext

Gets the LogicalCallContext for the current method call.

MethodBase MethodBase MethodBase MethodBase

Gets the MethodBase of the called method.

MethodName MethodName MethodName MethodName

Gets the name of the invoked method.

MethodSignature MethodSignature MethodSignature MethodSignature

Gets an object that contains the method signature.

OutArgCount OutArgCount OutArgCount OutArgCount

Gets the number of arguments in the method call marked as ref or out parameters.

OutArgs OutArgs OutArgs OutArgs

Gets an array of arguments in the method call that are marked as ref or out parameters.

Properties Properties Properties Properties

Gets an IDictionary interface that represents a collection of the remoting message's properties.

ReturnValue ReturnValue ReturnValue ReturnValue

Gets the return value of the method call.

TypeName TypeName TypeName TypeName

Gets the full type name of the remote object on which the method call is being made.

Uri Uri Uri Uri

Gets the Uniform Resource Identifier (URI) of the remote object on which the method call is being made.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetArg(Int32) GetArg(Int32) GetArg(Int32) GetArg(Int32)

Gets a method argument, as an object, at a specified index.

GetArgName(Int32) GetArgName(Int32) GetArgName(Int32) GetArgName(Int32)

Gets the name of a method argument at a specified index.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext)

The GetObjectData(SerializationInfo, StreamingContext) method is not implemented.

GetOutArg(Int32) GetOutArg(Int32) GetOutArg(Int32) GetOutArg(Int32)

Returns the specified argument marked as a ref parameter or an out parameter.

GetOutArgName(Int32) GetOutArgName(Int32) GetOutArgName(Int32) GetOutArgName(Int32)

Returns the name of the specified argument marked as a ref parameter or an out parameter.

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
HeaderHandler(Header[]) HeaderHandler(Header[]) HeaderHandler(Header[]) HeaderHandler(Header[])

Initializes an internal serialization handler from an array of remoting headers that are applied to a method.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
RootSetObjectData(SerializationInfo, StreamingContext) RootSetObjectData(SerializationInfo, StreamingContext) RootSetObjectData(SerializationInfo, StreamingContext) RootSetObjectData(SerializationInfo, StreamingContext)

Sets method information from serialization settings.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also