Modifica

Condividi tramite


XamlReader.Skip Method

Definition

Skips the current node and advances the reader position to the next node.

public:
 virtual void Skip();
public virtual void Skip ();
abstract member Skip : unit -> unit
override this.Skip : unit -> unit
Public Overridable Sub Skip ()

Remarks

Once skipped, Read is called by the default Skip implementation. You typically do not call Skip and Read in sequence.

In the default Skip implementation, different actions are taken depending on which NodeType the reader position is currently on. If the reader position is currently on a StartMember or StartObject, that member or object is skipped. For other NodeType values, no action is taken other than calling Read from the current position.

Subtree readers can call Skip, with behavior restrictions. For more information, see the "Subtree Readers" section in XamlReader, or see ReadSubtree.

The node tree behavior of XamlReader.Skip is based on the XML equivalent XmlReader.Skip. Based on the XmlReader.Skip behavior equivalence, XamlReader.Skip skips the node and its subtree, not just the single entry node.

Applies to