Share via


RegisteredServers.GetServerForUri Method (Uri)

Gets the name of the server that has the specified URI.

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

Syntax

'Declaration
Public Shared Function GetServerForUri ( _
    uri As Uri _
) As String
public static string GetServerForUri(
    Uri uri
)
public:
static String^ GetServerForUri(
    Uri^ uri
)
static member GetServerForUri : 
        uri:Uri -> string
public static function GetServerForUri(
    uri : Uri
) : String

Parameters

  • uri
    Type: System.Uri

    The URI of the server of which the name is desired.

Return Value

Type: System.String
The name of the server that is associated with the specified URI.

.NET Framework Security

See Also

Reference

RegisteredServers Class

GetServerForUri Overload

Microsoft.TeamFoundation.Client Namespace