System.Data.Odbc.OdbcConnectionStringBuilder.Dsn Property

Gets or sets the name of the data source name (DSN) associated with the connection.

Syntax

[System.ComponentModel.RefreshProperties(System.ComponentModel.RefreshProperties.All)]
[System.ComponentModel.DisplayName("Dsn")]
public string Dsn { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

If the value passed in is null when you try to set the property, the OdbcConnectionStringBuilder.Dsn property is reset. If the value has not been set and the developer tries to retrieve the property, the return value is String.Empty. This property corresponds to the "Dsn" key within the connection string.

Requirements

Namespace: System.Data.Odbc
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 2.0.0.0