ILocationService.LocationForAccessMapping Method (String, Guid, AccessMapping)
Returns the location for the ServiceDefinition that has the specified service type and service identifier 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)
Syntax
'Declaration
Function LocationForAccessMapping ( _
serviceType As String, _
serviceIdentifier As Guid, _
accessMapping As AccessMapping _
) As String
string LocationForAccessMapping(
string serviceType,
Guid serviceIdentifier,
AccessMapping accessMapping
)
String^ LocationForAccessMapping(
String^ serviceType,
Guid serviceIdentifier,
AccessMapping^ accessMapping
)
abstract LocationForAccessMapping :
serviceType:string *
serviceIdentifier:Guid *
accessMapping:AccessMapping -> string
function LocationForAccessMapping(
serviceType : String,
serviceIdentifier : Guid,
accessMapping : AccessMapping
) : String
Parameters
serviceType
Type: System.StringThe service type of the ServiceDefinition to find the location for.
serviceIdentifier
Type: System.GuidThe service identifier of the ServiceDefinition to find the location for.
accessMapping
Type: Microsoft.TeamFoundation.Framework.Client.AccessMappingThe 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.
Exceptions
Exception | Condition |
---|---|
InvalidServiceDefinitionException | The associated ServiceDefinition is not valid and no location can be found. |
ServiceDefinitionDoesNotExistException | A ServiceDefinition with the provided service type and identifier does not exist. |
InvalidAccessPointException | The AccessMapping passed in does not have a valid access point. |
.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.