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);
[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
Public Sub New (h1 As Header(), mcm As IMethodCallMessage)

參數

h1
Header[]

包含索引鍵/值組的遠端標頭陣列。An array of remoting headers that contains key/value pairs. 這個陣列會用來初始化屬於命名空間 "http://schemas.microsoft.com/clr/soap/messageProperties" 標頭的 MethodResponse 欄位。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.

適用於