Bahasa

RenderTreeBuilder.AddElementReferenceCapture Metode

Definisi

Menambahkan bingkai yang mewakili instruksi untuk mengambil referensi ke elemen induk.

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))

Parameter

sequence
Int32

Bilangan bulat yang mewakili posisi instruksi dalam kode sumber.

elementReferenceCaptureAction
Action<ElementReference>

Tindakan yang akan dipanggil setiap kali nilai referensi berubah.

Berlaku untuk