Läs på engelska

Dela via


Formatter Class

Definition

Contains the formatter used to serialize an object into or deserialize an object from the body of a message read from or written to the queue.

C#
public class Formatter : ICloneable, System.Messaging.IMessageFormatter
Inheritance
Formatter
Implements

Constructors

Formatter()

Initializes a new instance of the Formatter class.

Methods

CanRead(Message)

Gets a value that indicates whether the message queue can be read.

Clone()

Creates a new object that is a copy of the current instance.

Read(Message)

Reads the message.

Write(Message, Object)

Opens a memory stream and writes the message object. This method serializes the message object including PackageID, VersionID, name of the datafile and the file contents.

Applies to

Produkt Versioner
SQL Server .NET SDK 2016, 2017, 2019