Partager via


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:
virtual IEnumerable<ServiceDefinition^>^ FindServiceDefinitionsByToolId(
    TeamFoundationRequestContext^ requestContext, 
    String^ toolId
) sealed
abstract FindServiceDefinitionsByToolId : 
        requestContext:TeamFoundationRequestContext * 
        toolId:string -> IEnumerable<ServiceDefinition> 
override FindServiceDefinitionsByToolId : 
        requestContext:TeamFoundationRequestContext * 
        toolId:string -> IEnumerable<ServiceDefinition> 
public final function FindServiceDefinitionsByToolId(
    requestContext : TeamFoundationRequestContext, 
    toolId : String
) : IEnumerable<ServiceDefinition>

Parameters

  • toolId
    Type: System.String

    The 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.

Implements

ITeamFoundationLocationService.FindServiceDefinitionsByToolId(TeamFoundationRequestContext, String)

.NET Framework Security

See Also

Reference

TeamFoundationLocationService Class

Microsoft.TeamFoundation.Framework.Server Namespace