Partager via


TeamProjectCollectionProperties.DatabaseCategoryConnectionStrings Property

Contains the connection strings to use for each database category (VersionControl, WorkItem, WorkItemAttachment, and so on).

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

Syntax

'Declaration
Public ReadOnly Property DatabaseCategoryConnectionStrings As IDictionary(Of String, String)
public IDictionary<string, string> DatabaseCategoryConnectionStrings { get; }
public:
property IDictionary<String^, String^>^ DatabaseCategoryConnectionStrings {
    IDictionary<String^, String^>^ get ();
}
member DatabaseCategoryConnectionStrings : IDictionary<string, string> with get
function get DatabaseCategoryConnectionStrings () : IDictionary<String, String>

Property Value

Type: System.Collections.Generic.IDictionary<String, String>
Returns IDictionary<TKey, TValue>.

Remarks

The values here are persisted to /Configuration/Database/$(DatabaseCategory)/ConnectionString in the collection Team Foundation registry hive. Any database category referenced during collection creation/servicing is added to the dictionary using the DefaultConnectionString.

Can be null for collection creation - a dictionary will be created and populated with DefaultConnectionString. If DatabaseCategoryConnectionStrings is not null, all connection strings in the database must refer to databases that already exist.

.NET Framework Security

See Also

Reference

TeamProjectCollectionProperties Class

Microsoft.TeamFoundation.Framework.Server Namespace

DefaultConnectionString