Message.OnBeginWriteBodyContents(XmlDictionaryWriter, AsyncCallback, Object) Message.OnBeginWriteBodyContents(XmlDictionaryWriter, AsyncCallback, Object) Message.OnBeginWriteBodyContents(XmlDictionaryWriter, AsyncCallback, Object) Message.OnBeginWriteBodyContents(XmlDictionaryWriter, AsyncCallback, Object) Method

定义

当消息开始写入消息正文的内容时引发事件。Raises an event when the message starts writing the contents of the message body.

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 XmlDictionaryWriter XmlDictionaryWriter XmlDictionaryWriter

用于序列化消息正文内容的编写器。The writer used to serialize the contents of the message body.

callback
AsyncCallback AsyncCallback AsyncCallback AsyncCallback

在操作完成时接收通知的委托方法。The delegate method that receives the notification when the operation completed.

state
Object Object Object Object

表示操作状态的用户定义的对象。The user-defined object that represents the state of the operation.

返回

表示异步操作结果的 IAsyncResult 对象。The IAsyncResult object that represents the result of the asynchronous operation.

适用于