Aracılığıyla paylaş


NodeType Enum

Definition

The type of an IXmlNode, as returned by the NodeType property.

public enum class NodeType
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class NodeType
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum NodeType
var value = Windows.Data.Xml.Dom.NodeType.invalid
Public Enum NodeType
Inheritance
NodeType
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Name Value Description
Invalid 0

Default value. Never used by the API.

ElementNode 1

The node is an XmlElement type.

AttributeNode 2

The node is an XmlAttribute type.

TextNode 3

The node is an XmlText type.

DataSectionNode 4

The node is an XmlCDataSection type.

EntityReferenceNode 5

The node is an XmlEntityReference object.

EntityNode 6

The node is an DtdEntity type.

ProcessingInstructionNode 7

The node is an XmlProcessingInstruction type.

CommentNode 8

The node is an XmlComment type.

DocumentNode 9

The node is an XmlDocument type.

DocumentTypeNode 10

The node is an XmlDocumentType type.

DocumentFragmentNode 11

The node is an XmlDocumentFragment type.

NotationNode 12

The node is a DtdNotation type.

Applies to