NodeType Property
Collapse the table of content
Expand the table of content

XamlObjectReader.NodeType Property

.NET Framework (current version)
 

Gets the type of the current node.

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

public override XamlNodeType NodeType { get; }

Property Value

Type: System.Xaml.XamlNodeType

The type of the current node.

When using the XamlObjectReader APIs, you typically check the NodeType property after every operation that potentially advances the reader position, such as the Read, ReadSubtree, or Skip methods. NodeType indicates the information that you can obtain from the current reader position and the methods that you call next. For example, you might access the Member, Type, Value, or Instance properties; or you might call the Skip method if you are not interested in the contents of the current node type.

.NET Framework
Available since 4.0
Return to top
Show:
© 2016 Microsoft