TfsApiControllerExtensions.GenerateResponse 方法
命名空间: Microsoft.TeamFoundation.Framework.Server
程序集: Microsoft.TeamFoundation.Framework.Server(在 Microsoft.TeamFoundation.Framework.Server.dll 中)
语法
声明
<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
)
参数
- tfsApiController
类型:Microsoft.TeamFoundation.Framework.Server.TfsApiController
- collection
类型:System.Collections.Generic.IEnumerable<Object>
- t
类型:System.Type
返回值
类型:System.Net.Http.HttpResponseMessage
使用说明
在 Visual Basic 和 C# 中,可以在 TfsApiController 类型的任何对象上将此方法作为实例方法来调用。当使用实例方法语法调用此方法时,请省略第一个参数。有关详细信息,请参阅扩展方法 (Visual Basic)或扩展方法(C# 编程指南)。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。