Share via


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)

Syntax

'Declaration
Public Shared Function GetServer ( _
    projectCollection As RegisteredProjectCollection, _
    fallbackCredentialsProvider As ICredentialsProvider _
) As TeamFoundationServer
public static TeamFoundationServer GetServer(
    RegisteredProjectCollection projectCollection,
    ICredentialsProvider fallbackCredentialsProvider
)
public:
static TeamFoundationServer^ GetServer(
    RegisteredProjectCollection^ projectCollection, 
    ICredentialsProvider^ fallbackCredentialsProvider
)
static member GetServer : 
        projectCollection:RegisteredProjectCollection * 
        fallbackCredentialsProvider:ICredentialsProvider -> TeamFoundationServer
public static function GetServer(
    projectCollection : RegisteredProjectCollection, 
    fallbackCredentialsProvider : ICredentialsProvider
) : TeamFoundationServer

Parameters

Return Value

Type: Microsoft.TeamFoundation.Client.TeamFoundationServer
The TeamFoundationServer object that is associated with the server that is described in the specified RegisteredProjectCollection.

.NET Framework Security

See Also

Reference

TeamFoundationServerFactory Class

GetServer Overload

Microsoft.TeamFoundation.Client Namespace