RegistrationUtilities.GetServiceUrlForTool Method (TfsConnection, String, String)
Get the ServiceUrl for a specific tool with only one service Url An ArgumentException will be thrown if there is more than one ServiceUrl for this tool instance If no ServiceInstances are returned for this tool name an RegistrationEntryRetrievalException will be thrown
Namespace: Microsoft.TeamFoundation.Server
Assembly: Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)
Syntax
'Declaration
Public Shared Function GetServiceUrlForTool ( _
server As TfsConnection, _
toolName As String, _
interfaceName As String _
) As String
public static string GetServiceUrlForTool(
TfsConnection server,
string toolName,
string interfaceName
)
public:
static String^ GetServiceUrlForTool(
TfsConnection^ server,
String^ toolName,
String^ interfaceName
)
static member GetServiceUrlForTool :
server:TfsConnection *
toolName:string *
interfaceName:string -> string
public static function GetServiceUrlForTool(
server : TfsConnection,
toolName : String,
interfaceName : String
) : String
Parameters
- server
Type: Microsoft.TeamFoundation.Client.TfsConnection
toolName
Type: System.Stringthe tool intance name
interfaceName
Type: System.StringTool interfaca Name
Return Value
Type: System.String
the service Url for correspond to the provide tool instance name
.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.