Modifier

Partager via


XamlNodeList.GetReader Method

Definition

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.

Applies to