TeamProjectCollectionProperties.DefaultConnectionString Property

The connection string to use for any database category not found in DatabaseCategoryConnectionStrings.

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 DefaultConnectionString As String
[ClientPropertyAttribute(ClientVisibility.Public, ClientVisibility.Public)]
public string DefaultConnectionString { get; set; }
[ClientPropertyAttribute(ClientVisibility::Public, ClientVisibility::Public)]
public:
property String^ DefaultConnectionString {
    String^ get ();
    void set (String^ value);
}
[<ClientPropertyAttribute(ClientVisibility.Public, ClientVisibility.Public)>]
member DefaultConnectionString : string with get, set
function get DefaultConnectionString () : String 
function set DefaultConnectionString (value : String)

Property Value

Type: System.String
Returns String.

Remarks

Can be null for collection creation. If both DatabaseCategoryConnectionStrings and DefaultConnectionString are null, a new collection database will be created and both DatabaseCategoryConnectionStrings and DefaultConnectionString will be set.

During collection creation/servicing, if DefaultConnectionString is null but DatabaseCategoryConnectionStrings is not, then references to unknown database categories will result in failure.

If DefaultConnectionString is not null, it must refer to a database that already exists.

.NET Framework Security

See Also

Reference

TeamProjectCollectionProperties Class

Microsoft.TeamFoundation.Framework.Server Namespace