共用方式為


RegisteredServers.GetUriForServer Method

Gets the uniform resource identifier (URI) of the server that has the specified name.

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

Syntax

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

Parameters

  • serverName
    Type: System.String

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

Return Value

Type: System.Uri
The URI of the server that has the specified name.

.NET Framework Security

See Also

Reference

RegisteredServers Class

Microsoft.TeamFoundation.Client Namespace