Share via


TeamFoundationLocationService.FindServiceDefinition Method (TeamFoundationRequestContext, String, Guid)

Returns the service definition for the service that has the provided service type and identifier. Null will be returned if there is no entry in the cache for this service.

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, _
    identifier As Guid _
) As ServiceDefinition
public ServiceDefinition FindServiceDefinition(
    TeamFoundationRequestContext requestContext,
    string serviceType,
    Guid identifier
)
public:
ServiceDefinition^ FindServiceDefinition(
    TeamFoundationRequestContext^ requestContext, 
    String^ serviceType, 
    Guid identifier
)
member FindServiceDefinition : 
        requestContext:TeamFoundationRequestContext * 
        serviceType:string * 
        identifier:Guid -> ServiceDefinition
public function FindServiceDefinition(
    requestContext : TeamFoundationRequestContext, 
    serviceType : String, 
    identifier : Guid
) : ServiceDefinition

Parameters

  • serviceType
    Type: System.String

    The service type we are looking for.

  • identifier
    Type: System.Guid

    The identifier for the specific service instance we are looking for.

Return Value

Type: Microsoft.TeamFoundation.Framework.Server.ServiceDefinition
The service definition for the service that has the provided service type and identifier. Null will be returned if there is no entry in the cache for this service.

.NET Framework Security

See Also

Reference

TeamFoundationLocationService Class

FindServiceDefinition Overload

Microsoft.TeamFoundation.Framework.Server Namespace