TeamFoundationLocationService.FindServiceDefinitionsByToolId Method
Finds the service definitions for all of the available services for the specified tool ID. If no services exist for this tool ID, an empty enumeration will be returned.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Function FindServiceDefinitionsByToolId ( _
requestContext As TeamFoundationRequestContext, _
toolId As String _
) As IEnumerable(Of ServiceDefinition)
public IEnumerable<ServiceDefinition> FindServiceDefinitionsByToolId(
TeamFoundationRequestContext requestContext,
string toolId
)
public:
IEnumerable<ServiceDefinition^>^ FindServiceDefinitionsByToolId(
TeamFoundationRequestContext^ requestContext,
String^ toolId
)
member FindServiceDefinitionsByToolId :
requestContext:TeamFoundationRequestContext *
toolId:string -> IEnumerable<ServiceDefinition>
public function FindServiceDefinitionsByToolId(
requestContext : TeamFoundationRequestContext,
toolId : String
) : IEnumerable<ServiceDefinition>
Parameters
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context this call is associated with.
toolId
Type: System.StringThe case-insensitive tool ID whose services we are looking for. If this is the empty string or null, all services that have a tool ID will be returned.
Return Value
Type: System.Collections.Generic.IEnumerable<ServiceDefinition>
Service definitions for all of the existing services that are of the supplied tool ID. If no services of this type exist, an empty enumeration will be returned.
.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.