XPathNavigator.GetNamespacesInScope(XmlNamespaceScope) メソッド
定義
現在のノードのスコープ内の名前空間を返します。Returns the in-scope namespaces of the current node.
public:
virtual System::Collections::Generic::IDictionary<System::String ^, System::String ^> ^ GetNamespacesInScope(System::Xml::XmlNamespaceScope scope);
public virtual System.Collections.Generic.IDictionary<string,string> GetNamespacesInScope (System.Xml.XmlNamespaceScope scope);
abstract member GetNamespacesInScope : System.Xml.XmlNamespaceScope -> System.Collections.Generic.IDictionary<string, string>
override this.GetNamespacesInScope : System.Xml.XmlNamespaceScope -> System.Collections.Generic.IDictionary<string, string>
Public Overridable Function GetNamespacesInScope (scope As XmlNamespaceScope) As IDictionary(Of String, String)
パラメーター
- scope
- XmlNamespaceScope
返す名前空間を指定する XmlNamespaceScope 値。An XmlNamespaceScope value specifying the namespaces to return.
戻り値
プレフィックスをキーとした名前空間名の IDictionary<TKey,TValue> コレクション。An IDictionary<TKey,TValue> collection of namespace names keyed by prefix.
実装
注釈
返される名前空間は、 XmlNamespaceScope 指定された値によって異なります。The namespaces returned depends on the XmlNamespaceScope value specified.
XmlNamespaceScope 値XmlNamespaceScope Value | 返される名前空間Namespaces Returned |
---|---|
All | 現在のノードのスコープに定義されているすべての名前空間。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 | 現在のノードのスコープ内で定義されているすべての名前空間 (名前空間は除く) xmlns:xml 。常に暗黙的に宣言されます。All namespaces defined in the scope of the current node, excluding the xmlns:xml namespace, which is always declared implicitly. 返される名前空間の順序は定義されません。The order of the namespaces returned is not defined. |
Local | 現在のノードでローカルに定義されているすべての名前空間。All namespaces that are defined locally at the current node. |