共用方式為


PipelineComponent.EventInfos 屬性

Gets the IDTSEventInfos100 collection of the PipelineComponent object.

此 API 不符合 CLS 標準。 

命名空間:  Microsoft.SqlServer.Dts.Pipeline
組件:  Microsoft.SqlServer.PipelineHost (在 Microsoft.SqlServer.PipelineHost.dll 中)

語法

'宣告
<CLSCompliantAttribute(False)> _
Public ReadOnly Property EventInfos As IDTSEventInfos100 
    Get
'用途
Dim instance As PipelineComponent 
Dim value As IDTSEventInfos100 

value = instance.EventInfos
[CLSCompliantAttribute(false)]
public IDTSEventInfos100 EventInfos { get; }
[CLSCompliantAttribute(false)]
public:
property IDTSEventInfos100^ EventInfos {
    IDTSEventInfos100^ get ();
}
[<CLSCompliantAttribute(false)>]
member EventInfos : IDTSEventInfos100
function get EventInfos () : IDTSEventInfos100

屬性值

型別:Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSEventInfos100
The IDTSEventInfos100 object provided to the PipelineComponent object.

備註

Component developers create and expose custom events by using the EventInfos collection. The collection is provided to the component by the data flow task. Custom events are first created, or defined, by calling the Add method. The custom event is raised during package execution by calling the FireCustomEvent method of the ComponentMetaData.

If you specify true in the AllowEventHandlers parameter when calling Add, the Event Handlers tab in SSIS Designer, in SQL Server Data Tools (SSDT), shows the custom event in the Event Handler drop down box.

For more information, see 在資料流程元件中引發和定義事件.

請參閱

參考

PipelineComponent 類別

Microsoft.SqlServer.Dts.Pipeline 命名空間