共用方式為


NativeSqlConnectionException.SqlState 屬性

Indicates the Microsoft SQL Server SQL state for the error.

命名空間:  Microsoft.SqlServer.Replication
組件:  Microsoft.SqlServer.Replication (在 Microsoft.SqlServer.Replication.dll 中)

語法

'宣告
Public ReadOnly Property SqlState As String 
    Get
'用途
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

屬性值

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

備註

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.

請參閱

參考

NativeSqlConnectionException 類別

Microsoft.SqlServer.Replication 命名空間