語言

IDTSEvents100.OnCustomEvent 方法

定義

由工作呼叫,以引發自訂工作定義的事件。

public:
 void OnCustomEvent(Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSTaskHost100 ^ pTaskHost, System::String ^ EventName, System::String ^ EventText, cli::array <System::Object ^> ^ % ppsaArguments, System::String ^ SubComponent, [Runtime::InteropServices::Out] bool % pbFireAgain);
[System.Runtime.InteropServices.DispId(13)]
public void OnCustomEvent(Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSTaskHost100 pTaskHost, string EventName, string EventText, ref object[] ppsaArguments, string SubComponent, out bool pbFireAgain);
[<System.Runtime.InteropServices.DispId(13)>]
abstract member OnCustomEvent : Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSTaskHost100 * string * string * Object[] * string * bool -> unit
Public Sub OnCustomEvent (pTaskHost As IDTSTaskHost100, EventName As String, EventText As String, ByRef ppsaArguments As Object(), SubComponent As String, ByRef pbFireAgain As Boolean)

參數

pTaskHost
IDTSTaskHost100

就是目前任務的主機。

EventName
String

事件的名稱。

EventText
String

描述事件的文字。

ppsaArguments
Object[]

一組要傳遞給事件的參數。

SubComponent
String

一個包含事件來源更多細節的字串。

pbFireAgain
Boolean

一個布林值表示此點應該繼續或停止發射。 值為真表示應該繼續發射。

屬性

備註

如需詳細資訊,請參閱 IDTSEvents。

適用於