共用方式為


ILifecycleBuilder.AddEvent<TDelegate>(String, TDelegate) 方法

定義

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

適用於