LifecycleBuilderExtensions.AddEvent Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddEvent(ILifecycleBuilder, String, Action) | |
AddEvent<TDelegate>(ILifecycleBuilder, String, TDelegate) |
AddEvent(ILifecycleBuilder, String, Action)
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Maui::LifecycleEvents::ILifecycleBuilder ^ AddEvent(Microsoft::Maui::LifecycleEvents::ILifecycleBuilder ^ builder, System::String ^ eventName, Action ^ action);
public static Microsoft.Maui.LifecycleEvents.ILifecycleBuilder AddEvent (this Microsoft.Maui.LifecycleEvents.ILifecycleBuilder builder, string eventName, Action action);
static member AddEvent : Microsoft.Maui.LifecycleEvents.ILifecycleBuilder * string * Action -> Microsoft.Maui.LifecycleEvents.ILifecycleBuilder
<Extension()>
Public Function AddEvent (builder As ILifecycleBuilder, eventName As String, action As Action) As ILifecycleBuilder
Parameters
- builder
- ILifecycleBuilder
- eventName
- String
- action
- Action
Returns
Applies to
AddEvent<TDelegate>(ILifecycleBuilder, String, TDelegate)
public:
generic <typename TDelegate>
where TDelegate : Delegate[System::Runtime::CompilerServices::Extension]
static Microsoft::Maui::LifecycleEvents::ILifecycleBuilder ^ AddEvent(Microsoft::Maui::LifecycleEvents::ILifecycleBuilder ^ builder, System::String ^ eventName, TDelegate action);
public static Microsoft.Maui.LifecycleEvents.ILifecycleBuilder AddEvent<TDelegate> (this Microsoft.Maui.LifecycleEvents.ILifecycleBuilder builder, string eventName, TDelegate action) where TDelegate : Delegate;
static member AddEvent : Microsoft.Maui.LifecycleEvents.ILifecycleBuilder * string * 'Delegate -> Microsoft.Maui.LifecycleEvents.ILifecycleBuilder (requires 'Delegate :> Delegate)
<Extension()>
Public Function AddEvent(Of TDelegate As Delegate) (builder As ILifecycleBuilder, eventName As String, action As TDelegate) As ILifecycleBuilder
Type Parameters
- TDelegate
Parameters
- builder
- ILifecycleBuilder
- eventName
- String
- action
- TDelegate
Returns
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET MAUI