ProviderFeature.ConnectionStringRequired Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value indicating whether a connection string is required to access the database.
public:
virtual property bool ConnectionStringRequired { bool get(); };
public virtual bool ConnectionStringRequired { get; }
member this.ConnectionStringRequired : bool
Public Overridable ReadOnly Property ConnectionStringRequired As Boolean
Property Value
true
if a connection string is required to connect to the database; otherwise, false
. The default is false
.
Remarks
If the configuration provider must connect to a database, the database may require that the connection string name be included in the definition of the provider. Set the ConnectionStringRequired property to true
and the ConnectionStringAttributeName property value to a valid connection string to connect to the database.