Export (0) Print
Expand All

XmlNamespaceManager.GetEnumerator Method

Returns an enumerator to use to iterate through the namespaces in the XmlNamespaceManager.

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

'Declaration
Public Overridable Function GetEnumerator As IEnumerator

Return Value

Type: System.Collections.IEnumerator
An IEnumerator containing the prefixes stored by the XmlNamespaceManager.

Implements

IEnumerable.GetEnumerator

The following code shows how to use the IEnumerator to view all the namespace pairs stored in the XmlNamespaceManager object.

Dim nsEnum As IEnumerator = nsmgr.GetEnumerator()
Do While nsEnum.MoveNext
  If nsEnum.Current <> "" Then
    OutputTextBlock.Text ="xmlns:" + nsEnum.Current + "=" + nsmgr.LookupNamespace(nsEnum.Current)
  End If
Loop

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft