语言

IDTSEventInfos100.Add 方法

定义

向当前集合添加一个 IDTSEventInfo100 对象。

public:
 void Add(System::String ^ EventName, System::String ^ Description, bool AllowEventHandlers, cli::array <System::String ^> ^ % ParamNames, cli::array <System::UInt16> ^ % ParamTypes, cli::array <System::String ^> ^ % ParamDescs);
[System.Runtime.InteropServices.DispId(2)]
public void Add(string EventName, string Description, bool AllowEventHandlers, ref string[] ParamNames, ref ushort[] ParamTypes, ref string[] ParamDescs);
[<System.Runtime.InteropServices.DispId(2)>]
abstract member Add : string * string * bool * String[] * UInt16[] * String[] -> unit
Public Sub Add (EventName As String, Description As String, AllowEventHandlers As Boolean, ByRef ParamNames As String(), ByRef ParamTypes As UShort(), ByRef ParamDescs As String())

参数

EventName
String

自定义事件的名称。

Description
String

事件的说明。

AllowEventHandlers
Boolean

true表示可以为该事件创建事件处理对象;否则,就是假的。

ParamNames
String[]

一系列参数传递给事件。

ParamTypes
UInt16[]

数组中 ParamNames 每个参数的类型。

ParamDescs
String[]

一个包含 中 ParamNames每个参数描述的数组。

属性

注解

有关详细信息,请参阅 EventInfos。

适用于