次の方法で共有


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

'Declaration
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

See Also

Reference

RegisteredTfsConnections Class

GetProjectCollection Overload

Microsoft.TeamFoundation.Client Namespace