共用方式為


IDTSEvents100.OnCustomEvent Method

Definition

Called by tasks to raise custom task-defined events.

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)

Parameters

pTaskHost
IDTSTaskHost100

The task that is hosting the current task.

EventName
String

The name of the event.

EventText
String

The text that describes the event.

ppsaArguments
Object[]

An array of arguments to pass to the event.

SubComponent
String

A String that contains more detail about the event source.

pbFireAgain
Boolean

A Boolean that indicates this should continue firing or stop firing. A value of true indicates that it should continue firing.

Attributes

Remarks

For more information, see IDTSEvents.

Applies to