XmlNodeEventArgs.NodeType Property
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.
Gets the type of the XML node being deserialized.
public:
property System::Xml::XmlNodeType NodeType { System::Xml::XmlNodeType get(); };
public System.Xml.XmlNodeType NodeType { get; }
member this.NodeType : System.Xml.XmlNodeType
Public ReadOnly Property NodeType As XmlNodeType
Property Value
The XmlNodeType that represents the XML node being deserialized.
Examples
The following example prints a description of the unknown node that caused the UnknownNode event to occur.
private:
void serializer_UnknownNode( Object^ /*sender*/, XmlNodeEventArgs^ e )
{
XmlNodeType myNodeType = e->NodeType;
Console::WriteLine( myNodeType );
}
private void serializer_UnknownNode
(object sender, XmlNodeEventArgs e)
{
XmlNodeType myNodeType = e.NodeType;
Console.WriteLine(myNodeType);
}
Private Sub serializer_UnknownNode _
(ByVal sender As Object, _
ByVal e As XmlNodeEventArgs)
Dim myNodeType As XmlNodeType = e.NodeType
Console.WriteLine(myNodeType)
End Sub
Remarks
The XmlNodeType enumeration returns a description of the node being deserialized. For example, it returns "Comment" if the node is a comment.
Applies to
See also
Spolupráca s nami v službe GitHub
Zdroj tohto obsahu nájdete v službe GitHub, kde môžete vytvárať a skúmať problémy a žiadosti o prijatie zmien. Ďalšie informácie nájdete v našom sprievodcovi prispievateľom.