語言

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。

適用於