This documentation is archived and is not being maintained.

ILocationService.LocationForAccessMapping Method (ServiceDefinition, AccessMapping)

Returns the location for the ServiceDefinition for the provided AccessMapping. If this ServiceDefinition is FullyQualified and no LocationMapping exists for this AccessMapping then null will be returned.

Namespace:  Microsoft.TeamFoundation.Framework.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)

string LocationForAccessMapping(
	ServiceDefinition serviceDefinition,
	AccessMapping accessMapping
)

Parameters

serviceDefinition
Type: Microsoft.TeamFoundation.Framework.Client.ServiceDefinition

The ServiceDefinition to find the location for.

accessMapping
Type: Microsoft.TeamFoundation.Framework.Client.AccessMapping

The AccessMapping to find the location for.

Return Value

Type: System.String
The location for the ServiceDefinition for the provided AccessMapping. If this ServiceDefinition is FullyQualified and no LocationMapping exists for this AccessMapping then null will be returned.

ExceptionCondition
InvalidServiceDefinitionException

The ServiceDefinition passed in is not valid.

InvalidAccessPointException

The AccessMapping passed in does not have a valid access point.

Show: