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.
命名空間: Microsoft.SqlServer.Dts.Tasks.MessageQueueTask
組件: Microsoft.SqlServer.MSMQTask (在 Microsoft.SqlServer.MSMQTask.dll 中)
語法
'宣告
Public Sub Write ( _
msg As Message, _
obj As Object _
)
'用途
Dim instance As Formatter
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
)
參數
- msg
型別:System.Messaging. . :: . .Message
The message object to write.
- obj
型別:System. . :: . .Object
The variable that the message object is in.