XamlWriter.WriteNode(XamlReader) 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.
Performs switching based on node type from the XAML reader (NodeType) and calls the relevant Write
method for the writer implementation.
public:
void WriteNode(System::Xaml::XamlReader ^ reader);
public void WriteNode (System.Xaml.XamlReader reader);
member this.WriteNode : System.Xaml.XamlReader -> unit
Public Sub WriteNode (reader As XamlReader)
Parameters
- reader
- XamlReader
The reader to use for node determination.
Exceptions
reader
is null
.
The default implementation encountered a XamlNodeType that is not in the default enumeration.
Remarks
Notes for Inheritors
The WriteNode method is not a virtual method because it has practical implementation for all existing XamlNodeType values. Based on XamlNodeType, WriteNode calls into the Write
virtual members that are dedicated to particular node types.
If you have an advanced XAML writing scenario that expands the XAML type system and XAML node stream concept so that new node types are defined, do not use WriteNode calls in your logic. You must instead provide your own alternative for node-type switching logic in the class or in virtual overrides.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기