Finds the service definition with the provided service type and tool id. In order for this call to succeed, only one service that has the provided service type and tool id can exist.
Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Function FindServiceDefinition ( _
    requestContext As TeamFoundationRequestContext, _
    serviceType As String, _
    toolId As String _
) As ServiceDefinition
public ServiceDefinition FindServiceDefinition(
    TeamFoundationRequestContext requestContext,
    string serviceType,
    string toolId
)
public:
virtual ServiceDefinition^ FindServiceDefinition(
    TeamFoundationRequestContext^ requestContext, 
    String^ serviceType, 
    String^ toolId
) sealed
abstract FindServiceDefinition : 
        requestContext:TeamFoundationRequestContext * 
        serviceType:string * 
        toolId:string -> ServiceDefinition  
override FindServiceDefinition : 
        requestContext:TeamFoundationRequestContext * 
        serviceType:string * 
        toolId:string -> ServiceDefinition
public final function FindServiceDefinition(
    requestContext : TeamFoundationRequestContext, 
    serviceType : String, 
    toolId : String
) : ServiceDefinition
Parameters
- requestContext 
 Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext- The request context this call is associated with. 
- serviceType 
 Type: System.String- The service type being requested. 
- toolId 
 Type: System.String- The tool id for the service. If this is the empty string, all toolIds will be searched. 
Return Value
Type: Microsoft.VisualStudio.Services.Location.ServiceDefinition
The definition for the service.
Implements
ITeamFoundationLocationService.FindServiceDefinition(TeamFoundationRequestContext, String, String)
.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.
See Also
Reference
TeamFoundationLocationService Class