語言

Message.OnBeginWriteBodyContents 方法

定義

當訊息開始寫入訊息主體內容時,會引發事件。

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

參數

writer
XmlDictionaryWriter

寫入者會序列化訊息主體的內容。

callback
AsyncCallback

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

state
Object

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

傳回

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

適用於