Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

XamlXmlReader.Read Method

Definition

Namespace:
System.Xaml
Assembly:
System.Xaml.dll

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Provides the next XAML node from the loaded source, if a XAML node is available.

public:
 override bool Read();
public override bool Read();
override this.Read : unit -> bool
Public Overrides Function Read () As Boolean

Returns

true if a node is available; otherwise, false.

Remarks

A node where Read returns false also returns true for IsEof.

Calling Read generally has the side effect of advancing the LineNumber or LinePosition.

The next operation after calling Read and getting a true result is typically to check NodeType. For more information about XAML node stream concepts, see Understanding XAML Node Stream Structures and Concepts.

Applies to

See also


Feedback

Was this page helpful?