Share via


ILocationService.LocationForCurrentConnection Method

Include Protected Members
Include Inherited Members

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method LocationForCurrentConnection(ServiceDefinition) 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.
Public method LocationForCurrentConnection(String, Guid, Guid)

Top

See Also

Reference

ILocationService Interface

Microsoft.VisualStudio.Services.Location Namespace