IXmlNamespaceResolver.GetNamespacesInScope(XmlNamespaceScope) メソッド

定義

現在スコープ内にある定義済みのプレフィックスと名前空間のマッピングのコレクションを取得します。

public:
 System::Collections::Generic::IDictionary<System::String ^, System::String ^> ^ GetNamespacesInScope(System::Xml::XmlNamespaceScope scope);
public System.Collections.Generic.IDictionary<string,string> GetNamespacesInScope(System.Xml.XmlNamespaceScope scope);
abstract member GetNamespacesInScope : System.Xml.XmlNamespaceScope -> System.Collections.Generic.IDictionary<string, string>
Public Function GetNamespacesInScope (scope As XmlNamespaceScope) As IDictionary(Of String, String)

パラメーター

scope
XmlNamespaceScope

返す名前空間ノードの種類を指定する XmlNamespaceScope 値。

返品

現在のスコープ内名前空間を含む IDictionary

注釈

コレクションはプレフィックスによってキー指定され、現在スコープ内の名前空間を列挙するために使用できます。 コレクションは、現在の名前空間リストの切断されたコピーです。

次の表に、 XmlNamespaceScope 値と、 GetNamespacesInScope メソッドによって既定の名前空間と組み込み名前空間が返されるかどうかに与える影響を示します。

XmlNamespaceScope 値 xmlns:xml xmlns:xmlns xmlns=""
All はい いいえ いいえ
ExcludeXml いいえ いいえ いいえ
Local いいえ いいえ はい

適用対象