Gets or sets the isolation level used for any transaction. Initialize only after the connection is open.
[Visual Basic] Public Property IsolationLevel As IsolationLevel [C#] public IsolationLevel IsolationLevel {get; set;} [C++] public: __property IsolationLevel get_IsolationLevel(); public: __property void set_IsolationLevel(IsolationLevel); [JScript] public function get IsolationLevel() : IsolationLevel; public function set IsolationLevel(IsolationLevel);
One of the IsolationLevel values.
Exception Type | Condition |
---|---|
BrokenConError | The connection is broken. |
If the connetion is closed the IsolationLevel property is set to Unspecified.
Note This is the only property other then Database that can be set when the connection is open.
The following example creates a SQLConnection and sets some of its properties.
SQLConnection Class | SQLConnection Members | System.Data.SQL Namespace | Database | ConnectionString | ConnectionTimeout | DataSource | Password | UserID