Gets the body of the message.
Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Function GetBody(Of T) As T
T GetBody<T>()
generic<typename T>
T GetBody()
abstract GetBody : unit -> 'T 
JScript does not support generic types or methods.
Type Parameters
- T
Return Value
Type: T
Exceptions
| Exception | Condition | 
|---|---|
| InvalidCastException | Thrown if the body of the message is not of the specified type. | 
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.