MethodCall 类

此类支持 .NET 基础结构,但不适合在代码中直接使用。

实现 IMethodCallMessage 接口来创建一个请求消息,该消息作为远程对象上的方法调用。

此类不符合 CLS。 

**命名空间:**System.Runtime.Remoting.Messaging
**程序集:**mscorlib(在 mscorlib.dll 中)

语法

声明
<SerializableAttribute> _
<CLSCompliantAttribute(False)> _
<ComVisibleAttribute(True)> _
Public Class MethodCall
    Implements IMethodCallMessage, IMethodMessage, IMessage, ISerializable
用法
Dim instance As MethodCall
[SerializableAttribute] 
[CLSCompliantAttribute(false)] 
[ComVisibleAttribute(true)] 
public class MethodCall : IMethodCallMessage, IMethodMessage, IMessage, 
    ISerializable
[SerializableAttribute] 
[CLSCompliantAttribute(false)] 
[ComVisibleAttribute(true)] 
public ref class MethodCall : IMethodCallMessage, IMethodMessage, IMessage, 
    ISerializable
/** @attribute SerializableAttribute() */ 
/** @attribute CLSCompliantAttribute(false) */ 
/** @attribute ComVisibleAttribute(true) */ 
public class MethodCall implements IMethodCallMessage, IMethodMessage, 
    IMessage, ISerializable
SerializableAttribute 
CLSCompliantAttribute(false) 
ComVisibleAttribute(true) 
public class MethodCall implements IMethodCallMessage, IMethodMessage, 
    IMessage, ISerializable

备注

MethodCall 类由 .NET Framework 的远程处理基础结构使用。不必直接创建 MethodCall 类的实例,可改用 IMethodCallMessage 接口。

MethodCall 包含在消息接收器之间传递的远程处理数据。远程处理客户端将一条 MethodCall 消息发送到服务器。

继承层次结构

System.Object
  System.Runtime.Remoting.Messaging.MethodCall
     System.Runtime.Remoting.Messaging.ConstructionCall

线程安全

此类型的任何公共静态(Visual Basic 中的 Shared)成员都是线程安全的,但不保证所有实例成员都是线程安全的。

平台

Windows 98、Windows 2000 SP4、Windows Millennium Edition、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:2.0、1.1、1.0

请参见

参考

MethodCall 成员
System.Runtime.Remoting.Messaging 命名空间
IMethodCallMessage 接口
IMethodMessage 接口
IMessage 接口