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
‘선언
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
- projectCollection
Type: Microsoft.TeamFoundation.Client.RegisteredProjectCollection
The RegisteredProjectCollection instance that contains information about the server.
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
- 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.