共用方式為


TfsConfigurationServerFactory.GetConfigurationServer Method (Uri, ICredentialsProvider)

Note: This API is now obsolete.

Gets the TfsConfigurationServer instance associated with the server at the specified URI and a fallback credentials provider.

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

Syntax

'Declaration
<ObsoleteAttribute("This method has been deprecated and will be removed in a future release. See GetConfigurationServer(Uri) instead.",  _
    False)> _
Public Shared Function GetConfigurationServer ( _
    uri As Uri, _
    fallbackCredentialsProvider As ICredentialsProvider _
) As TfsConfigurationServer
[ObsoleteAttribute("This method has been deprecated and will be removed in a future release. See GetConfigurationServer(Uri) instead.", 
    false)]
public static TfsConfigurationServer GetConfigurationServer(
    Uri uri,
    ICredentialsProvider fallbackCredentialsProvider
)
[ObsoleteAttribute(L"This method has been deprecated and will be removed in a future release. See GetConfigurationServer(Uri) instead.", 
    false)]
public:
static TfsConfigurationServer^ GetConfigurationServer(
    Uri^ uri, 
    ICredentialsProvider^ fallbackCredentialsProvider
)
[<ObsoleteAttribute("This method has been deprecated and will be removed in a future release. See GetConfigurationServer(Uri) instead.", 
    false)>]
static member GetConfigurationServer : 
        uri:Uri * 
        fallbackCredentialsProvider:ICredentialsProvider -> TfsConfigurationServer
public static function GetConfigurationServer(
    uri : Uri, 
    fallbackCredentialsProvider : ICredentialsProvider
) : 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 associated with the server at the specified URI with the specified credentials provider.

Remarks

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

.NET Framework Security

See Also

Reference

TfsConfigurationServerFactory Class

GetConfigurationServer Overload

Microsoft.TeamFoundation.Client Namespace