次の方法で共有


Message.GetBody Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

Retrieves the body of this Message instance.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public methodSupported by Silverlight for Windows Phone GetBody<T>() Retrieves the body of this Message instance.
Public methodSupported by Silverlight for Windows Phone GetBody<T>(XmlObjectSerializer) Retrieves the body of this Message using the specified serializer.

Top

Remarks

After a message is created, the message body can be read using the GetBody methods on the returned message. The returned object encapsulates all the child elements within the Body element. Because the body of a message is a stream, it can only be written once, or read once.