From 53cabce5c101727f8e0e3ed1b22bf92ebbb523cb Mon Sep 17 00:00:00 2001 From: Robert Haken Date: Wed, 20 Mar 2024 11:45:37 +0100 Subject: [PATCH] [Blazor] Event handling - first InvokeAsync example with args (#32085) --- aspnetcore/blazor/components/event-handling.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aspnetcore/blazor/components/event-handling.md b/aspnetcore/blazor/components/event-handling.md index a996297271..92a1e2a59c 100644 --- a/aspnetcore/blazor/components/event-handling.md +++ b/aspnetcore/blazor/components/event-handling.md @@ -635,9 +635,11 @@ Prefer the strongly typed or with and await the : ```csharp -await OnClickCallback.InvokeAsync(); +await OnClickCallback.InvokeAsync({ARGUMENT}); ``` +In the preceding example, the `{ARGUMENT}` placeholder is an optional argument. + The following parent-child example demonstrates the technique. `Child2.razor`: