This documentation is archived and is not being maintained.
TfsConfigurationServerFactory.GetConfigurationServer Method (Uri, ICredentialsProvider)
Visual Studio 2012
Note: This API is now obsolete.
Gets the TfsConfigurationServer instance associated with the server at the specified URI and a fallback credentials provider.
Assembly: Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)
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.
- fallbackCredentialsProvider
- Type: Microsoft.TeamFoundation.Client.ICredentialsProvider
The credentials provider to use if the environment does not already supply one.
Return Value
Type: Microsoft.TeamFoundation.Client.TfsConfigurationServerThe TfsConfigurationServer instance associated with the server at the specified URI with the specified credentials provider.
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.
- 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.
Show: