Variable2KFormatter.Write Method
This API supports the SQL Server 2012 infrastructure and is not intended to be used directly from your code.
Serializes an object into the body of the message.
Namespace: Microsoft.SqlServer.Dts.Tasks.MessageQueueTask
Assembly: Microsoft.SqlServer.MSMQTask (in Microsoft.SqlServer.MSMQTask.dll)
Syntax
'Declaration
Public Sub Write ( _
msg As Message, _
obj As Object _
)
'Usage
Dim instance As Variable2KFormatter
Dim msg As Message
Dim obj As Object
instance.Write(msg, obj)
public void Write(
Message msg,
Object obj
)
public:
virtual void Write(
Message^ msg,
Object^ obj
) sealed
abstract Write :
msg:Message *
obj:Object -> unit
override Write :
msg:Message *
obj:Object -> unit
public final function Write(
msg : Message,
obj : Object
)
Parameters
- msg
Type: System.Messaging.Message
The message whose body property will contain the serialized object.
- obj
Type: System.Object
The object to be serialized into the message.
Implements
IMessageFormatter.Write(Message, Object)