共用方式為


IDTSComponentEvents100.FireCustomEvent 方法

此 API 支援 SQL Server 2012 基礎結構,但無法直接從您的程式碼使用。

Occurs when tasks raise custom task-defined events.

命名空間:  Microsoft.SqlServer.Dts.Runtime.Wrapper
組件:  Microsoft.SqlServer.DTSRuntimeWrap (在 Microsoft.SqlServer.DTSRuntimeWrap.dll 中)

語法

'宣告
Sub FireCustomEvent ( _
    EventName As String, _
    EventText As String, _
    ByRef ppsaArguments As Object(), _
    SubComponent As String, _
    <OutAttribute> ByRef pbFireAgain As Boolean _
)
'用途
Dim instance As IDTSComponentEvents100 
Dim EventName As String 
Dim EventText As String 
Dim ppsaArguments As Object()
Dim SubComponent As String 
Dim pbFireAgain As Boolean

instance.FireCustomEvent(EventName, EventText, _
    ppsaArguments, SubComponent, pbFireAgain)
void FireCustomEvent(
    string EventName,
    string EventText,
    ref Object[] ppsaArguments,
    string SubComponent,
    out bool pbFireAgain
)
void FireCustomEvent(
    [InAttribute] String^ EventName, 
    [InAttribute] String^ EventText, 
    [InAttribute] array<Object^>^% ppsaArguments, 
    [InAttribute] String^ SubComponent, 
    [InAttribute] [OutAttribute] bool% pbFireAgain
)
abstract FireCustomEvent : 
        EventName:string * 
        EventText:string * 
        ppsaArguments:Object[] byref * 
        SubComponent:string * 
        pbFireAgain:bool byref -> unit
function FireCustomEvent(
    EventName : String, 
    EventText : String, 
    ppsaArguments : Object[], 
    SubComponent : String, 
    pbFireAgain : boolean
)

參數

  • EventName
    型別:System.String
    The name of the event to raise.
  • EventText
    型別:System.String
    The text describing the event.
  • ppsaArguments
    型別:array<System.Object[]%
    An array of arguments to pass to the event.
  • SubComponent
    型別:System.String
    A String that contains more detail about the event source.
  • pbFireAgain
    型別:System.Boolean%
    When this method returns, contains a Boolean that indicates this should continue firing or stop firing. A value of true indicates that it should continue firing. A value of false indicates that it should stop firing. This parameter is passed uninitialized.

請參閱

參考

IDTSComponentEvents100 介面

Microsoft.SqlServer.Dts.Runtime.Wrapper 命名空間