XmlNamespaceManager.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 値が GetNamespacesInScope メソッドによって返される名前空間に与える影響を示します。

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

適用対象

こちらもご覧ください