Partager via


DatabaseSettings.DefaultDatabase Property

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Gets or sets the default database instance name.

Namespace:  Microsoft.Practices.EnterpriseLibrary.Data.Configuration
Assembly:  Microsoft.Practices.EnterpriseLibrary.Data (in Microsoft.Practices.EnterpriseLibrary.Data.dll)

Syntax

'Declaration
<ConfigurationPropertyAttribute("defaultDatabase", IsRequired := False)> _
PublicPropertyDefaultDatabaseAs String
[ConfigurationPropertyAttribute("defaultDatabase", IsRequired = false)]
public string DefaultDatabase { get; set; }
[ConfigurationPropertyAttribute(L"defaultDatabase", IsRequired = false)]
public:
property String^ DefaultDatabase {
    String^ get ();
    voidset (String^ value);
}
publicfunction getDefaultDatabase () : String
publicfunction setDefaultDatabase (value : String)

Field Value

The default database instance name.

Remarks

This property maps to the defaultInstance element in configuration.

See Also

DatabaseSettings Class

Microsoft.Practices.EnterpriseLibrary.Data.Configuration Namespace

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.