IDTSEventInfos100.Add 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將物件 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。