Share via


ProviderFeature.ConnectionStringRequired Property

Definition

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.

Applies to

See also