ILifecycleBuilder.AddEvent<TDelegate>(String, TDelegate) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
public:
generic <typename TDelegate>
where TDelegate : Delegate void AddEvent(System::String ^ eventName, TDelegate action);
public void AddEvent<TDelegate> (string eventName, TDelegate action) where TDelegate : Delegate;
abstract member AddEvent : string * 'Delegate -> unit (requires 'Delegate :> Delegate)
Public Sub AddEvent(Of TDelegate As Delegate) (eventName As String, action As TDelegate)
類型參數
- TDelegate
參數
- eventName
- String
- action
- TDelegate