XPathNamespaceScope 枚举

定义

定义命名空间范围。Defines the namespace scope.

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

字段

All 0

返回在当前节点范围内定义的所有命名空间。Returns all namespaces defined in the scope of the current node. 这包括总是隐式声明的 xmlns:xml 命名空间。This includes the xmlns:xml namespace which is always declared implicitly. 未定义返回的命名空间的顺序。The order of the namespaces returned is not defined.

ExcludeXml 1

返回在当前节点范围内定义的所有命名空间,xmlns:xml 命名空间除外。Returns all namespaces defined in the scope of the current node, excluding the xmlns:xml namespace. xmlns:xml 命名空间总是隐式声明的。The xmlns:xml namespace is always declared implicitly. 未定义返回的命名空间的顺序。The order of the namespaces returned is not defined.

Local 2

返回在当前节点本地定义的所有命名空间。Returns all namespaces that are defined locally at the current node.

注解

枚举可传递到XPathNavigator类的MoveToFirstNamespaceMoveToNextNamespace方法, 以指定要移到的命名空间节点的类型。 XPathNamespaceScopeThe XPathNamespaceScope enumeration can be passed to the MoveToFirstNamespace and MoveToNextNamespace methods of the XPathNavigator class to specify the type of namespace node to move to.

适用于