TfsApiControllerExtensions.GenerateResponse Method
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function GenerateResponse ( _
tfsApiController As TfsApiController, _
collection As IEnumerable(Of Object), _
t As Type _
) As HttpResponseMessage
public static HttpResponseMessage GenerateResponse(
this TfsApiController tfsApiController,
IEnumerable<Object> collection,
Type t
)
[ExtensionAttribute]
public:
static HttpResponseMessage^ GenerateResponse(
TfsApiController^ tfsApiController,
IEnumerable<Object^>^ collection,
Type^ t
)
static member GenerateResponse :
tfsApiController:TfsApiController *
collection:IEnumerable<Object> *
t:Type -> HttpResponseMessage
public static function GenerateResponse(
tfsApiController : TfsApiController,
collection : IEnumerable<Object>,
t : Type
) : HttpResponseMessage
Parameters
- tfsApiController
Type: Microsoft.TeamFoundation.Framework.Server.TfsApiController
- collection
Type: System.Collections.Generic.IEnumerable<Object>
- t
Type: System.Type
Return Value
Type: System.Net.Http.HttpResponseMessage
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type TfsApiController. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
.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.