Share via


EntityConnection.DataSource Property

Definition

Gets the name or network address of the data source to connect to.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")]
public override string DataSource { get; }
member this.DataSource : string
Public Overrides ReadOnly Property DataSource As String

Property Value

The name of the data source. The default value is an empty string.

Attributes

Exceptions

The underlying data provider is not known.

Applies to