共用方式為


ScriptingError 事件

Raises an event when an error occurs during a scripting operation.

命名空間:  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 支援事件的使用,但不支援新事件的宣告。