MethodResponse(Header[], IMethodCallMessage) 建構函式

定義

從遠端標頭的陣列和要求訊息,初始化 MethodResponse 類別的新執行個體。

此 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[]

包含索引鍵/值組的遠端標頭陣列。 這個陣列是用來初始化 MethodResponse 屬於命名空間 "http://schemas.microsoft.com/clr/soap/messageProperties" 之標頭的欄位。

mcm
IMethodCallMessage

要求訊息,其做為遠端物件上的方法呼叫。

屬性

備註

類別 MethodResponse 是由.NET Framework的遠端基礎結構所使用。 您不需要直接建立 類別的 MethodResponse 實例,而是使用 IMethodReturnMessage 介面。

適用於