Message.OnGetBody(XmlDictionaryReader) Message.OnGetBody(XmlDictionaryReader) Message.OnGetBody(XmlDictionaryReader) Message.OnGetBody(XmlDictionaryReader) Method

定义

检索消息正文时调用。Called when the body of the message is retrieved.

protected:
generic <typename T>
 virtual T OnGetBody(System::Xml::XmlDictionaryReader ^ reader);
protected virtual T OnGetBody<T> (System.Xml.XmlDictionaryReader reader);
abstract member OnGetBody : System.Xml.XmlDictionaryReader -> 'T
override this.OnGetBody : System.Xml.XmlDictionaryReader -> 'T
Protected Overridable Function OnGetBody(Of T) (reader As XmlDictionaryReader) As T

类型参数

T

消息体的类型。The type of the message body.

参数

reader
XmlDictionaryReader XmlDictionaryReader XmlDictionaryReader XmlDictionaryReader

用于读取消息的正文的 XmlDictionaryReader 对象。A XmlDictionaryReader object used to read the body of the message.

返回

T T T T

表示消息正文的 MessageBufferA MessageBuffer that represents the body of the message.

适用于