GetBody(T) Method
De inhoudsopgave samenvouwen
De inhoudsopgave uitvouwen
Deze inhoud is niet beschikbaar in uw taal, maar wel in het Engels.

BrokeredMessage.GetBody<T> Method ()


Deserializes the brokered message body into an object of the specified type by using the DataContractSerializer with a binary XmlDictionaryReader.

Namespace:   Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)

public T GetBody<T>()

Return Value

Type: T

The deserialized object or graph.

Type Parameters


The type to which the message body will be deserialized.

Exception Condition

If the message is in disposed state or the message body stream is already disposed.


If the message contains a null body stream or the body stream contains no data or the message body has already been consumed.

Return to top
© 2015 Microsoft