XPathNavigator.GetNamespacesInScope(XmlNamespaceScope) メソッド

定義

現在のノードのスコープ内の名前空間を返します。

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 値。

戻り値

IDictionary<String,String>

プレフィックスをキーとした名前空間名の IDictionary<TKey,TValue> コレクション。

実装

注釈

返される名前空間は、指定された値によって XmlNamespaceScope 異なります。

XmlNamespaceScope 値 返される名前空間
All 現在のノードのスコープに定義されているすべての名前空間。 これには、常に xmlns:xml 暗黙的に宣言される名前空間が含まれます。 返される名前空間の順序は定義されません。
ExcludeXml 現在のノードのスコープで定義されているすべての名前空間 (常に暗黙的に宣言される名前空間を除く xmlns:xml )。 返される名前空間の順序は定義されません。
Local 現在のノードでローカルに定義されているすべての名前空間。

適用対象