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!

SQLException.State

Gets the error state number returned from the SQL Server adapter.

[Visual Basic]
Public ReadOnly Property State As Byte
[C#]
public byte State {get;}
[C++]
public: __property unsigned char get_State();
[JScript]
public function get State() : Byte;

Property Value

The error state, which identifies the source from which the error was issued (if the error can be issued from more than one place).

Remarks

This is a wrapper for the State property of the first SQLError in the Errors property.

See Also

SQLException Class | SQLException Members | System.Data.SQL Namespace | Number | Class | Source | Server | Message | Procedure | LineNumber