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

IAsyncResult 物件,表示非同步作業的結果。

適用於