RemoveNodes Method

XContainer.RemoveNodes Method

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

Removes the child nodes from this document or element.

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

'Declaration
Public Sub RemoveNodes

If you call this method on an element that contains attributes, this method will not remove the attributes. To remove the attributes of an element, use RemoveAttributes.

The Remove method has related functionality. It removes the child nodes of every node in a collection.

This method will raise the Changed and the Changing events.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft