SqlState propriété

Indicates the Microsoft SQL Server SQL state for the error.

Espace de noms :  Microsoft.SqlServer.Replication
Assembly :  Microsoft.SqlServer.Replication (dans Microsoft.SqlServer.Replication.dll)

Syntaxe

'Déclaration
Public ReadOnly Property SqlState As String
    Get
'Utilisation
Dim instance As NativeSqlConnectionException
Dim value As String

value = instance.SqlState
public string SqlState { get; }
public:
property String^ SqlState {
    String^ get ();
}
member SqlState : string
function get SqlState () : String

Valeur de la propriété

Type : System. . :: . .String
A five-character String value that follows the ANSI SQL standard and indicates the error code

Notes

The SqlState property is used to get the error code that the provider returns when an error occurs during the processing of an SQL statement.