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!

SQLConnection.IsolationLevel

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);

Property Value

One of the IsolationLevel values.

Exceptions

Exception Type Condition
BrokenConError The connection is broken.

Remarks

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.

Example

The following example creates a SQLConnection and sets some of its properties.

See Also

SQLConnection Class | SQLConnection Members | System.Data.SQL Namespace | Database | ConnectionString | ConnectionTimeout | DataSource | Password | UserID