语言

Formatter 类

定义

包含用于将对象序列化为或从读写到队列的消息正文中反序列化对象的格式化器。

public ref class Formatter : ICloneable, System::Messaging::IMessageFormatter
public class Formatter : ICloneable, System.Messaging.IMessageFormatter
type Formatter = class
    interface IMessageFormatter
    interface ICloneable
Public Class Formatter
Implements ICloneable, IMessageFormatter
继承
Formatter
实现

构造函数

名称 说明
Formatter()

初始化 Formatter 类的新实例。

方法

名称 说明
CanRead(Message)

获得一个值,指示消息队列是否可以被读取。

Clone()

创建一个新对象,该对象是当前实例的副本。

Read(Message)

读了消息。

Write(Message, Object)

打开内存流并写入消息对象。 该方法序列化消息对象,包括PackageID、VersionID、数据文件名称和文件内容。

适用于