MethodCall 建構函式

定義

初始化 MethodCall 類別的新執行個體。

多載

MethodCall(Header[])

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

從遠端標頭陣列,初始化 MethodCall 類別的新執行個體。

MethodCall(IMessage)

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

藉由複製現有的訊息,初始化 MethodCall 類別的新執行個體。

MethodCall(Header[])

從遠端標頭陣列,初始化 MethodCall 類別的新執行個體。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

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

參數

h1
Header[]

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

屬性

備註

類別 MethodCall 是由.NET Framework的遠端基礎結構所使用。 您不需要直接建立 類別的 MethodCall 實例;請改用 IMethodCallMessage 介面。

適用於

MethodCall(IMessage)

藉由複製現有的訊息,初始化 MethodCall 類別的新執行個體。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public:
 MethodCall(System::Runtime::Remoting::Messaging::IMessage ^ msg);
public MethodCall (System.Runtime.Remoting.Messaging.IMessage msg);
[System.Security.SecurityCritical]
public MethodCall (System.Runtime.Remoting.Messaging.IMessage msg);
new System.Runtime.Remoting.Messaging.MethodCall : System.Runtime.Remoting.Messaging.IMessage -> System.Runtime.Remoting.Messaging.MethodCall
[<System.Security.SecurityCritical>]
new System.Runtime.Remoting.Messaging.MethodCall : System.Runtime.Remoting.Messaging.IMessage -> System.Runtime.Remoting.Messaging.MethodCall
Public Sub New (msg As IMessage)

參數

msg
IMessage

遠端訊息。

屬性

備註

類別 MethodCall 是由.NET Framework的遠端基礎結構所使用。 您不需要直接建立 類別的 MethodCall 實例;請改用 IMethodCallMessage 介面。

適用於