MutationObserver Class

https://dom.spec.whatwg.org/#interface-mutationobserver

public sealed class MutationObserver

Constructors

NameDescription
MutationObserver(MutationCallback)Creates an observer that invokes the callback with the batched mutation records.

MutationObserver(MutationCallback)

MutationObserver.cs

Creates an observer that invokes the callback with the batched mutation records.

public MutationObserver(MutationCallback callback)

Methods

NameDescription
Disconnect()https://dom.spec.whatwg.org/#dom-mutationobserver-disconnect
Observe(Node, MutationObserverInit?)https://dom.spec.whatwg.org/#dom-mutationobserver-observe
TakeRecords()https://dom.spec.whatwg.org/#dom-mutationobserver-takerecords

https://dom.spec.whatwg.org/#dom-mutationobserver-disconnect

public void Disconnect()

Observe(Node, MutationObserverInit?)

MutationObserver.cs

https://dom.spec.whatwg.org/#dom-mutationobserver-observe

public void Observe(Node target, MutationObserverInit? options = null)

TakeRecords()

MutationObserver.cs

https://dom.spec.whatwg.org/#dom-mutationobserver-takerecords

public IReadOnlyList<MutationRecord> TakeRecords()