共用方式為


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>

每當參考值變更時,要叫用的動作。

適用於