TeamFoundationServerFactory.GetServer Method (RegisteredProjectCollection)

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 _
) As TeamFoundationServer
public static TeamFoundationServer GetServer(
    RegisteredProjectCollection projectCollection
)
public:
static TeamFoundationServer^ GetServer(
    RegisteredProjectCollection^ projectCollection
)
static member GetServer : 
        projectCollection:RegisteredProjectCollection -> TeamFoundationServer
public static function GetServer(
    projectCollection : RegisteredProjectCollection
) : 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