MethodCall 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 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" 的标头的字段。
- 属性
注解
.NET框架的远程处理基础结构使用 MethodCall 类。 无需直接创建类的 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
远程处理消息。
- 属性
注解
.NET框架的远程处理基础结构使用 MethodCall 类。 无需直接创建类的 MethodCall 实例;而是使用 IMethodCallMessage 接口。