GetBody Method

Message.GetBody Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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.

  NameDescription
Public method GetBody<T>() Retrieves the body of this Message instance.
Public method GetBody<T>(XmlObjectSerializer) Retrieves the body of this Message using the specified serializer.
Top

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.

Show:
© 2017 Microsoft