Share via


Formatter Class

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.

Inheritance Hierarchy

System.Object
  Microsoft.SqlServer.Dts.Tasks.MessageQueueTask.Formatter

Namespace:  Microsoft.SqlServer.Dts.Tasks.MessageQueueTask
Assembly:  Microsoft.SqlServer.MSMQTask (in Microsoft.SqlServer.MSMQTask.dll)

Syntax

'Declaration
Public Class Formatter _
    Implements IMessageFormatter, ICloneable
'Usage
Dim instance As Formatter
public class Formatter : IMessageFormatter, ICloneable
public ref class Formatter : IMessageFormatter, 
    ICloneable
type Formatter =  
    class 
        interface IMessageFormatter 
        interface ICloneable 
    end
public class Formatter implements IMessageFormatter, ICloneable

The Formatter type exposes the following members.

Constructors

  Name Description
Public method Formatter Initializes a new instance of the Formatter class.

Top

Methods

  Name Description
Public method CanRead Gets a value that indicates whether the message queue can be read.
Public method Clone Creates a new object that is a copy of the current instance.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Read Reads the message.
Public method ToString (Inherited from Object.)
Public method Write 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.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.SqlServer.Dts.Tasks.MessageQueueTask Namespace