找到的服务定义所有可用的服务 id 指定的工具。如果没有服务存在此工具 ID,将返回空枚举。
命名空间: Microsoft.TeamFoundation.Framework.Server
程序集: Microsoft.TeamFoundation.Framework.Server(在 Microsoft.TeamFoundation.Framework.Server.dll 中)
语法
声明
Public Function FindServiceDefinitionsByToolId ( _
requestContext As TeamFoundationRequestContext, _
toolId As String _
) As IEnumerable(Of ServiceDefinition)
public IEnumerable<ServiceDefinition> FindServiceDefinitionsByToolId(
TeamFoundationRequestContext requestContext,
string toolId
)
参数
- requestContext
类型:Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
此调用关联的请求上下文。
- toolId
类型:System.String
不区分大小写的工具 ID 现在正在为其服务。如果这是空字符串或空值,将返回具有一个工具 ID 的所有服务。
返回值
类型:System.Collections.Generic.IEnumerable<ServiceDefinition>
服务定义所有的现有服务提供的工具 id。如果不存在此类型的任何服务,将返回空枚举。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。