RegisteredTfsConnections.GetProjectCollection Method (String)
Gets the registered project collection with the specified name.
Namespace: Microsoft.TeamFoundation.Client
Assembly: Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)
Syntax
声明
Public Shared Function GetProjectCollection ( _
name As String _
) As RegisteredProjectCollection
public static RegisteredProjectCollection GetProjectCollection(
string name
)
public:
static RegisteredProjectCollection^ GetProjectCollection(
String^ name
)
static member GetProjectCollection :
name:string -> RegisteredProjectCollection
public static function GetProjectCollection(
name : String
) : RegisteredProjectCollection
Parameters
- name
Type: System.String
The name of the registered project collection.
Return Value
Type: Microsoft.TeamFoundation.Client.RegisteredProjectCollection
The registered project collection with the specified name.
Null if no match is found.
Remarks
The name parameter is usually of the form "ServerHostName\CollectionName".
For legacy collections it will be "ServerHostName".
.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.