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
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context this call is associated with.
serviceType
Type: System.StringThe service type (or service interface) being requested.
toolId
Type: System.StringThe tool id for the service.
accessMapping
Type: Microsoft.VisualStudio.Services.Location.AccessMappingAccessMapping to retrieve the location from.
serviceOwner
Type: System.GuidThe 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
- 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.