NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ADOConnection Constructor (String)

Initializes a new instance of the ADOConnection class with the specified connection string.

[Visual Basic]
Overloads Public Sub New( _
   ByVal connectionString As String _
)
[C#]
public ADOConnection(
   string connectionString
);
[C++]
public: ADOConnection(
   String* connectionString
);
[JScript]
public function ADOConnection(
   connectionString : String
);

Parameters

connectionString
The connection used to open the data store.

Remarks

When an instance of ADOConnection is created, the following read/write properties are set to initial values.

Properties Initial Value
ConnectionString connectionString
ConnectionTimeout 15
Database empty string ("")
IsolationLevel IsolationLevel.Unspecified
DataSource empty string ("")
UserID empty string ("")
Password empty string ("")

You can change the value for any of these properties through a separate call to the property.

Example

The following example creates a connection and fills a DataSet.

See Also

ADOConnection Class | ADOConnection Members | System.Data.ADO Namespace | ADOConnection Constructor Overload List