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 현재 노드에서 로컬로 정의된 모든 네임스페이스입니다.

적용 대상