Share via


ITeamFoundationLocationService.FindServiceLocation, méthode

Recherche l'emplacement du service avec l'ID fourni de type de service et d'outil pour le mappage fourni d'accès. Pour que cet appel réussisse, seul un service avec l'ID fourni de type de service et d'outils peut exister.

Espace de noms :  Microsoft.TeamFoundation.Framework.Server
Assembly :  Microsoft.TeamFoundation.Framework.Server (dans Microsoft.TeamFoundation.Framework.Server.dll)

Syntaxe

'Déclaration
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
)

Paramètres

  • serviceType
    Type : System.String
    Le type de service (ou interface de service) est demandée.
  • serviceOwner
    Type : System.Guid
    Le propriétaire de service doit être Guid.Empty si vous ciblez le service d'emplacement actuel du service.Si vous souhaitez cibler un service d'emplacement du service distant.Cela doit être le Guid of service.Utilisez Microsoft.VisualStudio.Services.Common.ServiceOwners

Valeur de retour

Type : System.String
L'emplacement du service.

Sécurité .NET Framework

Voir aussi

Référence

ITeamFoundationLocationService Interface

Microsoft.TeamFoundation.Framework.Server, espace de noms