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
.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈