Delen via


IMessage.GetBody<T> Method

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

See Also

Reference

IMessage Interface

Microsoft.TeamFoundation.Framework.Server Namespace