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!

SQLError.Class

Gets the severity level of the error returned from the SQL Server adapter.

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

Property Value

The severity of the error.

Example [Visual Basic]

The following example returns the severity of the error.

[Visual Basic]

Function GetErrorClass(sqlErr As SQLError) As Byte
   GetErrorClass = sqlErr.Class
End Function

See Also

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