次の方法で共有


ServerMessageEventArgs.Exception プロパティ

Transact-SQL バッチの実行中にスローされた例外を取得します。

名前空間:  Microsoft.SqlServer.Management.MultiServerConnection
アセンブリ:  Microsoft.SqlServer.Management.MultiServerConnection (Microsoft.SqlServer.Management.MultiServerConnection.dll)

構文

'宣言
Public ReadOnly Property Exception As Exception 
    Get
'使用
Dim instance As ServerMessageEventArgs 
Dim value As Exception 

value = instance.Exception
public Exception Exception { get; }
public:
virtual property Exception^ Exception {
    Exception^ get () sealed;
}
abstract Exception : Exception 
override Exception : Exception
final function get Exception () : Exception

プロパティ値

型: System.Exception
Transact-SQL 実行中にスローされる例外です。

実装

IResultInfo.Exception

関連項目

参照

ServerMessageEventArgs クラス

Microsoft.SqlServer.Management.MultiServerConnection 名前空間