次の方法で共有


Scripter.ScriptingError イベント

スクリプト操作中にエラーが発生した場合にイベントを生成します。

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

構文

'宣言
Public Event ScriptingError As ScriptingErrorEventHandler
'使用
Dim instance As Scripter 
Dim handler As ScriptingErrorEventHandler 

AddHandler instance.ScriptingError, handler
public event ScriptingErrorEventHandler ScriptingError
public:
 event ScriptingErrorEventHandler^ ScriptingError {
    void add (ScriptingErrorEventHandler^ value);
    void remove (ScriptingErrorEventHandler^ value);
}
member ScriptingError : IEvent<ScriptingErrorEventHandler,
    ScriptingErrorEventArgs>
JScript はイベントの使用をサポートしていますが、新規の宣言はサポートしていません。

関連項目

参照

Scripter クラス

Microsoft.SqlServer.Management.Smo 名前空間