語言

Message.OnBeginWriteMessage 方法

定義

這引發了整個訊息的撰寫。

protected:
 virtual IAsyncResult ^ OnBeginWriteMessage(System::Xml::XmlDictionaryWriter ^ writer, AsyncCallback ^ callback, System::Object ^ state);
protected virtual IAsyncResult OnBeginWriteMessage(System.Xml.XmlDictionaryWriter writer, AsyncCallback callback, object state);
abstract member OnBeginWriteMessage : System.Xml.XmlDictionaryWriter * AsyncCallback * obj -> IAsyncResult
override this.OnBeginWriteMessage : System.Xml.XmlDictionaryWriter * AsyncCallback * obj -> IAsyncResult
Protected Overridable Function OnBeginWriteMessage (writer As XmlDictionaryWriter, callback As AsyncCallback, state As Object) As IAsyncResult

參數

writer
XmlDictionaryWriter

作者會將整則訊息序列化。

callback
AsyncCallback

代理方法在操作完成時接收通知。

state
Object

使用者定義的物件,代表操作的狀態。

傳回

代表 IAsyncResult 非同步操作結果的物件。

適用於