RenderTreeBuilder.AddElementReferenceCapture 方法

定义

追加表示指令的帧,以捕获对父元素的引用。

public:
 void AddElementReferenceCapture(int sequence, Action<Microsoft::AspNetCore::Components::ElementReference> ^ elementReferenceCaptureAction);
public void AddElementReferenceCapture (int sequence, Action<Microsoft.AspNetCore.Components.ElementReference> elementReferenceCaptureAction);
member this.AddElementReferenceCapture : int * Action<Microsoft.AspNetCore.Components.ElementReference> -> unit
Public Sub AddElementReferenceCapture (sequence As Integer, elementReferenceCaptureAction As Action(Of ElementReference))

参数

sequence
Int32

一个整数,表示指令在源代码中的位置。

elementReferenceCaptureAction
Action<ElementReference>

每当引用值更改时要调用的操作。

适用于