Delen via


ITeamFoundationLocationService.FindServiceLocation Method

Finds the location of the service with the provided service type and tool id for the provided access mapping. In order for this call to succeed, only one service with 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
Function FindServiceLocation ( _
    requestContext As TeamFoundationRequestContext, _
    serviceType As String, _
    toolId As String, _
    accessMapping As AccessMapping, _
    serviceOwner As Guid _
) As String
string FindServiceLocation(
    TeamFoundationRequestContext requestContext,
    string serviceType,
    string toolId,
    AccessMapping accessMapping,
    Guid serviceOwner
)
String^ FindServiceLocation(
    TeamFoundationRequestContext^ requestContext, 
    String^ serviceType, 
    String^ toolId, 
    AccessMapping^ accessMapping, 
    Guid serviceOwner
)
abstract FindServiceLocation : 
        requestContext:TeamFoundationRequestContext * 
        serviceType:string * 
        toolId:string * 
        accessMapping:AccessMapping * 
        serviceOwner:Guid -> string
function FindServiceLocation(
    requestContext : TeamFoundationRequestContext, 
    serviceType : String, 
    toolId : String, 
    accessMapping : AccessMapping, 
    serviceOwner : Guid
) : String

Parameters

  • serviceType
    Type: System.String

    The service type (or service interface) being requested.

  • 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: System.String
The location for the service.

.NET Framework Security

See Also

Reference

ITeamFoundationLocationService Interface

Microsoft.TeamFoundation.Framework.Server Namespace