TeamFoundationCatalogService.QueryResourceTypes 方法
返回所有的资源类型指定的标识符。 如果空或 null 列表传递,所有资源类型将返回。
命名空间: Microsoft.TeamFoundation.Server.Core
程序集: Microsoft.TeamFoundation.Server.Core(在 Microsoft.TeamFoundation.Server.Core.dll 中)
语法
声明
Public Function QueryResourceTypes ( _
requestContext As TeamFoundationRequestContext, _
resourceTypeIdentifiers As IEnumerable(Of Guid) _
) As List(Of CatalogResourceType)
public List<CatalogResourceType> QueryResourceTypes(
TeamFoundationRequestContext requestContext,
IEnumerable<Guid> resourceTypeIdentifiers
)
参数
- requestContext
类型:Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
此请求的上下文。
- resourceTypeIdentifiers
类型:System.Collections.Generic.IEnumerable<Guid>
应返回的资源类型的标识符。如果为其值为 null 或为空,所有资源类型将返回。
返回值
类型:System.Collections.Generic.List<CatalogResourceType>
请求的标识符的资源类型。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。