EnumerationType 枚举

定义

指定 NodeList 数组中的对象类型,ForEachNodeListEnumerator 将遍历这些对象。 EnumerationType 属性设置为此枚举中的值之一。

public enum class EnumerationType
public enum EnumerationType
type EnumerationType = 
Public Enum EnumerationType
继承
EnumerationType

字段

ElementCollection 3

枚举 XPath 运算返回的元素节点。

Navigator 0

枚举 XML 文档中的导航器对象

Node 1

枚举通过使用 XPath 运算返回的节点。

NodeText 2

枚举 XPath 运算返回的文本节点。

注解

如果为EnumerationTypeNavigatorNodeNodeText使用OuterXPathStringSourceTypeOuterXPathString属性。

如果为 ,EnumerationTypeElementCollection请设置OuterXPathStringSourceTypeOuterXPathString属性。 然后,使用 InnerElementType 属性设置内部元素的枚举类型。 最后,设置 InnerXPathStringSourceType 属性。

适用于