GetNamespacesInScope Method
Collapse the table of content
Expand the table of content

XmlNamespaceManager.GetNamespacesInScope Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets a collection of namespace names keyed by prefix which can be used to enumerate the namespaces currently in scope.

Namespace:  System.Xml
Assembly:  System.Xml (in System.Xml.dll)

'Declaration
Public Overridable Function GetNamespacesInScope ( _
	scope As XmlNamespaceScope _
) As IDictionary(Of String, String)

Parameters

scope
Type: System.Xml.XmlNamespaceScope
An XmlNamespaceScope value that specifies the type of namespace nodes to return.

Return Value

Type: System.Collections.Generic.IDictionary(Of String, String)
A collection of namespace names keyed by prefix which can be used to enumerate the namespaces currently in scope.

Implements

IXmlNamespaceResolver.GetNamespacesInScope(XmlNamespaceScope)

The dictionary consists of a collection of namespace names keyed by prefix. It can be used to enumerate the in-scope namespaces. The dictionary is a disconnected copy of the namespace list. It remains unchanged as the current in-scope namespace list changes.

The following table describes the XmlNamespaceScope values and how it affects the whether or not the default and built-in namespaces are returned by the GetNamespacesInScope method.

XmlNamespaceScope Value

xmlns:xml

xmlns:xmlns

xmlns=""

All

yes

no

no

ExcludeXml

no

no

no

Local

no

no

yes

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft