XamlNodeList.GetReader Method
Definition
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.
Returns a XAML reader implementation delegate.
public:
System::Xaml::XamlReader ^ GetReader();
public System.Xaml.XamlReader GetReader ();
member this.GetReader : unit -> System.Xaml.XamlReader
Public Function GetReader () As XamlReader
Returns
A XAML reader implementation delegate.
Exceptions
The XamlNodeList is still in Write mode.
-or-
The writer that is used for the node list has no schema context.
Remarks
Although it is not specifically a service provider, you can use the XamlReader delegate that is returned from XamlNodeList.GetReader in a service mode, where you cast it to IXamlIndexingReader. In that mode you can get and set the index values for IXamlIndexingReader.CurrentIndex. In this manner, the set mode enables skipping nodes without using the standard Read
and Skip
.