Upraviť

Zdieľať cez


MethodResponse(Header[], IMethodCallMessage) Constructor

Definition

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

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

public:
 MethodResponse(cli::array <System::Runtime::Remoting::Messaging::Header ^> ^ h1, System::Runtime::Remoting::Messaging::IMethodCallMessage ^ mcm);
public MethodResponse (System.Runtime.Remoting.Messaging.Header[] h1, System.Runtime.Remoting.Messaging.IMethodCallMessage mcm);
[System.Security.SecurityCritical]
public MethodResponse (System.Runtime.Remoting.Messaging.Header[] h1, System.Runtime.Remoting.Messaging.IMethodCallMessage mcm);
new System.Runtime.Remoting.Messaging.MethodResponse : System.Runtime.Remoting.Messaging.Header[] * System.Runtime.Remoting.Messaging.IMethodCallMessage -> System.Runtime.Remoting.Messaging.MethodResponse
[<System.Security.SecurityCritical>]
new System.Runtime.Remoting.Messaging.MethodResponse : System.Runtime.Remoting.Messaging.Header[] * System.Runtime.Remoting.Messaging.IMethodCallMessage -> System.Runtime.Remoting.Messaging.MethodResponse
Public Sub New (h1 As Header(), mcm As IMethodCallMessage)

Parameters

h1
Header[]

An array of remoting headers that contains key/value pairs. This array is used to initialize MethodResponse fields for headers that belong to the namespace "http://schemas.microsoft.com/clr/soap/messageProperties".

mcm
IMethodCallMessage

A request message that acts as a method call on a remote object.

Attributes

Remarks

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.

Applies to