TfsTeamProjectCollectionFactory.GetTeamProjectCollection Method (String, Boolean, Boolean)
Retrieves the TfsTeamProjectCollection object that is used for a given server.
Namespace: Microsoft.TeamFoundation.Client
Assembly: Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)
Syntax
'Declaration
Public Shared Function GetTeamProjectCollection ( _
serverName As String, _
ensureAuthenticated As Boolean, _
ensureServerIsLocallyRegistered As Boolean _
) As TfsTeamProjectCollection
public static TfsTeamProjectCollection GetTeamProjectCollection(
string serverName,
bool ensureAuthenticated,
bool ensureServerIsLocallyRegistered
)
public:
static TfsTeamProjectCollection^ GetTeamProjectCollection(
String^ serverName,
bool ensureAuthenticated,
bool ensureServerIsLocallyRegistered
)
static member GetTeamProjectCollection :
serverName:string *
ensureAuthenticated:bool *
ensureServerIsLocallyRegistered:bool -> TfsTeamProjectCollection
public static function GetTeamProjectCollection(
serverName : String,
ensureAuthenticated : boolean,
ensureServerIsLocallyRegistered : boolean
) : TfsTeamProjectCollection
Parameters
serverName
Type: System.StringName of the server to connect to.
ensureAuthenticated
Type: System.BooleanAuthenticate against the server.
ensureServerIsLocallyRegistered
Type: System.BooleanCreate a registration entry for this server.
Return Value
Type: Microsoft.TeamFoundation.Client.TfsTeamProjectCollection
.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.
See Also
Reference
TfsTeamProjectCollectionFactory Class