Share via


ITeamFoundationLocationService.FindServiceDefinition Method (TeamFoundationRequestContext, String, Guid, Guid)

Returns the service definition for the service with 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
Function FindServiceDefinition ( _
    requestContext As TeamFoundationRequestContext, _
    serviceType As String, _
    identifier As Guid, _
    serviceOwner As Guid _
) As ServiceDefinition
ServiceDefinition FindServiceDefinition(
    TeamFoundationRequestContext requestContext,
    string serviceType,
    Guid identifier,
    Guid serviceOwner
)
ServiceDefinition^ FindServiceDefinition(
    TeamFoundationRequestContext^ requestContext, 
    String^ serviceType, 
    Guid identifier, 
    Guid serviceOwner
)
abstract FindServiceDefinition : 
        requestContext:TeamFoundationRequestContext * 
        serviceType:string * 
        identifier:Guid * 
        serviceOwner:Guid -> ServiceDefinition
function FindServiceDefinition(
    requestContext : TeamFoundationRequestContext, 
    serviceType : String, 
    identifier : Guid, 
    serviceOwner : 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.

  • serviceOwner
    Type: System.Guid

    The service owner should be Guid.Empty if you are targetting the current service's location service. If you want to target a remote service's location service. This should be the Guid of the service. Use Microsoft.VisualStudio.Services.Common.ServiceOwners

Return Value

Type: Microsoft.VisualStudio.Services.Location.ServiceDefinition
The service definition for the service with 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

ITeamFoundationLocationService Interface

FindServiceDefinition Overload

Microsoft.TeamFoundation.Framework.Server Namespace