共用方式為


TransferBase.ScriptingError 事件

Reports that an error occurred during the scripting process.

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

語法

'宣告
Public Event ScriptingError As ScriptingErrorEventHandler
'用途
Dim instance As TransferBase 
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 支援事件的使用,但不支援新事件的宣告。

請參閱

參考

TransferBase 類別

Microsoft.SqlServer.Management.Smo 命名空間