Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

TeamFoundationServerFactory.GetServer Method (String, ICredentialsProvider)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets the TeamFoundationServer object that is associated with the specified URL and credentials provider.

Namespace:  Microsoft.TeamFoundation.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)
public static TeamFoundationServer GetServer(
	string url,
	ICredentialsProvider fallbackCredentialsProvider
)

Parameters

url
Type: System.String

The URL of the 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.TeamFoundationServer
The TeamFoundationServer object that is associated with the specified URL.

If a TeamFoundationServer object that has the specified URL exists in the cache, it is returned. If not, a new TeamFoundation Server object is created by using a credentials provider, if any, that is appropriate for the environment. The created TeamFoundationServer object is placed in the cache and associated with the URL that is resolved for the name.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.