MethodResponse(Header[], IMethodCallMessage) 构造函数

定义

从一个远程处理标头数组和一个请求消息初始化 MethodResponse 类的一个新实例。Initializes a new instance of the MethodResponse class from an array of remoting headers and a request message.

此 API 支持产品基础结构,不能在代码中直接使用。

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)

参数

h1
Header[]

包含键/值对的远程处理标头数组。An array of remoting headers that contains key/value pairs. 此数组用于初始化 MethodResponse 属于命名空间 " http://schemas.microsoft.com/clr/soap/messageProperties "的标头的字段。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.

属性

注解

MethodResponse类由 .NET Framework 的远程处理基础结构使用。The MethodResponse class is used by the remoting infrastructure of the .NET Framework. 不需要直接创建类的实例 MethodResponse ,而是使用 IMethodReturnMessage 接口。You do not need to create an instance of the MethodResponse class directly; instead, use the IMethodReturnMessage interface.

适用于