TfsConfigurationServerFactory.GetConfigurationServer Method (Uri)

Gets the TfsConfigurationServer instance that is associated with the server at the specified URI.

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

Syntax

'Declaração
Public Shared Function GetConfigurationServer ( _
    uri As Uri _
) As TfsConfigurationServer
public static TfsConfigurationServer GetConfigurationServer(
    Uri uri
)
public:
static TfsConfigurationServer^ GetConfigurationServer(
    Uri^ uri
)
static member GetConfigurationServer : 
        uri:Uri -> TfsConfigurationServer 
public static function GetConfigurationServer(
    uri : Uri
) : TfsConfigurationServer

Parameters

  • uri
    Type: System.Uri
    The URI of the server that is running Team Foundation Server.

Return Value

Type: Microsoft.TeamFoundation.Client.TfsConfigurationServer
The TfsConfigurationServer instance that is associated with the server at the specified URI.

Remarks

If a TfsConfigurationServer object that has the specified URI exists in the cache, it is returned. If not, a new TfsConfigurationServer instance is created with a credentials provider, if any, that is appropriate for the environment. The created TfsConfigurationServer object is placed in the cache and associated with the URI that is resolved for the name.

.NET Framework Security

See Also

Reference

TfsConfigurationServerFactory Class

GetConfigurationServer Overload

Microsoft.TeamFoundation.Client Namespace