Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the ___location for the ServiceDefintion that should be used based on the current connection. This method will never return null or empty. If it succeeds it will return a targetable ___location for the provided ServiceDefinition. When determining what ___location to return for the ServiceDefinition and current connection the following rules will be applied: 1. Try to find a ___location for the ClientAccessMapping. 2. Try to find a ___location for the DefaultAccessMapping. 3. Use the first ___location in the LocationMappings list.
Namespace: Microsoft.TeamFoundation.Framework.Client
Assembly: Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)
Syntax
'Declaration
Function LocationForCurrentConnection ( _
serviceDefinition As ServiceDefinition _
) As String
string LocationForCurrentConnection(
ServiceDefinition serviceDefinition
)
String^ LocationForCurrentConnection(
ServiceDefinition^ serviceDefinition
)
abstract LocationForCurrentConnection :
serviceDefinition:ServiceDefinition -> string
function LocationForCurrentConnection(
serviceDefinition : ServiceDefinition
) : String
Parameters
serviceDefinition
Type: Microsoft.TeamFoundation.Framework.Client.ServiceDefinitionThe ServiceDefinition to find the ___location for.
Return Value
Type: System.String
The ___location for the given ServiceDefinition that should be used based on the current connection.
Exceptions
Exception | Condition |
---|---|
InvalidServiceDefinitionException | The ServiceDefinition passed in is not valid and no ___location can be found. |
.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.