共用方式為


Error 屬性

Gets the error associated with the server message event.

命名空間:  Microsoft.SqlServer.Management.Common
組件:  Microsoft.SqlServer.ConnectionInfo (在 Microsoft.SqlServer.ConnectionInfo.dll 中)

語法

'宣告
Public ReadOnly Property Error As SqlError
    Get
'用途
Dim instance As ServerMessageEventArgs
Dim value As SqlError

value = instance.Error
public SqlError Error { get; }
public:
property SqlError^ Error {
    SqlError^ get ();
}
member Error : SqlError
function get Error () : SqlError

屬性值

型別:System.Data.SqlClient. . :: . .SqlError
A SqlError system object value that specifies the error associated with the server message event.