Export (0) Print
Expand All

XamlReader.Skip Method

.NET Framework 4.6 and 4.5

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

Namespace:  System.Xaml
Assembly:  System.Xaml (in System.Xaml.dll)

public virtual void Skip()

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.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft