RenderTreeBuilder.AddComponentReferenceCapture Method

Definition

Appends a frame representing an instruction to capture a reference to the parent component.

C#
public void AddComponentReferenceCapture (int sequence, Action<object> componentReferenceCaptureAction);

Parameters

sequence
Int32

An integer that represents the position of the instruction in the source code.

componentReferenceCaptureAction
Action<Object>

An action to be invoked whenever the reference value changes.

Applies to

Product Versions
ASP.NET Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0