共用方式為


TeamProjectCollectionProperties.IsDefault Property

Default might be set to true on one team project collection. This will allow the version 1 client to access the site this collection is on and be redirected to this project collection.

If a collection is updated and made the default collection, the current collection marked as default is changed to False.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
<ClientPropertyAttribute(ClientVisibility.Public, ClientVisibility.Public)> _
Public Property IsDefault As Boolean
[ClientPropertyAttribute(ClientVisibility.Public, ClientVisibility.Public)]
public bool IsDefault { get; set; }
[ClientPropertyAttribute(ClientVisibility::Public, ClientVisibility::Public)]
public:
property bool IsDefault {
    bool get ();
    void set (bool value);
}
[<ClientPropertyAttribute(ClientVisibility.Public, ClientVisibility.Public)>]
member IsDefault : bool with get, set
function get IsDefault () : boolean 
function set IsDefault (value : boolean)

Property Value

Type: System.Boolean
Returns Boolean.

.NET Framework Security

See Also

Reference

TeamProjectCollectionProperties Class

Microsoft.TeamFoundation.Framework.Server Namespace