MethodReturnMessageWrapper 类

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

实现 IMethodReturnMessage 接口以创建一条消息,该消息作为远程对象上的方法调用的响应。

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

语法

声明
<ComVisibleAttribute(True)> _
Public Class MethodReturnMessageWrapper
    Inherits InternalMessageWrapper
    Implements IMethodReturnMessage, IMethodMessage, IMessage
用法
Dim instance As MethodReturnMessageWrapper
[ComVisibleAttribute(true)] 
public class MethodReturnMessageWrapper : InternalMessageWrapper, IMethodReturnMessage, IMethodMessage, IMessage
[ComVisibleAttribute(true)] 
public ref class MethodReturnMessageWrapper : public InternalMessageWrapper, IMethodReturnMessage, IMethodMessage, IMessage
/** @attribute ComVisibleAttribute(true) */ 
public class MethodReturnMessageWrapper extends InternalMessageWrapper implements IMethodReturnMessage, IMethodMessage, 
    IMessage
ComVisibleAttribute(true) 
public class MethodReturnMessageWrapper extends InternalMessageWrapper implements IMethodReturnMessage, IMethodMessage, 
    IMessage

备注

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

MethodReturnMessageWrapper 类包装在消息接收器之间传递的远程处理数据。远程处理服务器在对客户端请求的响应中将一条 MethodReturnMessageWrapper 消息发送到客户端。

继承层次结构

System.Object
   System.Runtime.Remoting.Messaging.InternalMessageWrapper
    System.Runtime.Remoting.Messaging.MethodReturnMessageWrapper

线程安全

此类型的任何公共静态(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

请参见

参考

MethodReturnMessageWrapper 成员
System.Runtime.Remoting.Messaging 命名空间
IMethodReturnMessage 接口
IMethodMessage 接口
IMessage 接口
InternalMessageWrapper 类