Condividi tramite


Formatter.Write Method

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.

Spazio dei nomi: Microsoft.SqlServer.Dts.Tasks.MessageQueueTask
Assembly : Microsoft.SqlServer.MSMQTask (in microsoft.sqlserver.msmqtask.dll)

Sintassi

'Dichiarazione
Public Sub Write ( _
    msg As Message, _
    obj As Object _
)
public void Write (
    Message msg,
    Object obj
)
public:
virtual void Write (
    Message^ msg, 
    Object^ obj
) sealed
public final void Write (
    Message msg, 
    Object obj
)
public final function Write (
    msg : Message, 
    obj : Object
)

Parametri

  • msg
    The message object to write.
  • obj
    The variable that the message object is in.

Thread Safety

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

Piattaforme

Piattaforme di sviluppo

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Piattaforme di destinazione

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Vedere anche

Riferimento

Formatter Class
Formatter Members
Microsoft.SqlServer.Dts.Tasks.MessageQueueTask Namespace