ConnectionString Property

The ConnectionString property of the Connection class gets or sets the connection string for the connection.

Property Value

A string that contains the connection string.


The ConnectionString property only applies to the OLEDB adapter, and the value must be the OLEDB connection string that is needed to connect to the back-end data source.


Platforms: Microsoft Windows Server 2003

Security: Code Access Security