Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

TeamFoundationServerFactory.GetServer Method (RegisteredProjectCollection, ICredentialsProvider)

Gets the TeamFoundationServer object that is associated with the specified RegisteredProjectCollection object.

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

public static TeamFoundationServer GetServer(
	RegisteredProjectCollection projectCollection,
	ICredentialsProvider fallbackCredentialsProvider
)

Parameters

projectCollection
Type: Microsoft.TeamFoundation.Client.RegisteredProjectCollection

The RegisteredProjectCollection instance that contains information about 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 server that is described in the specified RegisteredProjectCollection.

Show:
© 2015 Microsoft