Share via


ComponentBase.OnInitializedAsync Method

Definition

Method invoked when the component is ready to start, having received its initial parameters from its parent in the render tree.

Override this method if you will perform an asynchronous operation and want the component to refresh when that operation is completed.

protected:
 virtual System::Threading::Tasks::Task ^ OnInitializedAsync();
protected virtual System.Threading.Tasks.Task OnInitializedAsync ();
abstract member OnInitializedAsync : unit -> System.Threading.Tasks.Task
override this.OnInitializedAsync : unit -> System.Threading.Tasks.Task
Protected Overridable Function OnInitializedAsync () As Task

Returns

A Task representing any asynchronous operation.

Applies to