IXMLDOMNamedNodeMap.reset (Visual Basic .NET)
.gif)
| Previous | Next |
IXMLDOMNamedNodeMap.reset (Visual Basic .NET)
The reset method resets the iterator in the collection of attribute nodes.
Syntax
IXMLDOMNamedNodeMap .reset
Parameters
This method contains no parameters.
Return Values
This method does not return a value.
Remarks
This method is an extension of the World Wide Web Consortium (W3C) Document Object Model (DOM).
Example Code
The following example uses the reset method to reset the iterator in the list of attributes so that the nextNode method will return the first node in the list.
Imports interop_msxml
Imports Microsoft.WindowsMediaServices.Interop
On Error GoTo Err
' Declare variables.
Dim Server As New WMSServerClass()
Dim Playlist As IXMLDOMDocument
Dim NodeList As IXMLDOMNodeList
Dim NextNode As IXMLDOMNode
' Create a new playlist object.
Set Playlist = Server.CreatePlaylist
' Load a playlist.
Playlist.Load ("file://c:\wmpub\wmroot\simple.wsx")
' Retrieve all the elements with the tag name "media".
NodeList = Playlist.getElementsByTagName("media")
' Reset the iterator of the first node in the list so that
' the following call to nextNode() returns the first node
' in the list.
NodeList.item(0).attributes.reset
NextNode = NodeList.item(0).attributes.nextNode
Exit Sub
Err:
' TODO: Handle errors.
Requirements
Reference: Add references to Microsoft.WindowsMediaServices and interop_msxml.
Namespace: Microsoft.WindowsMediaServices.Interop, interop_msxml.
Assembly: Microsoft.WindowsMediaServices.dll, interop_msxml.dll.
Library: WMSServerTypeLib.dll, msxml.dll.
Platform: Windows ServerĀ 2003 family, Windows ServerĀ 2008 family.
See Also
| Previous | Next |