Extensions.Remove Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Removes every attribute in the source collection from its parent element.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.
| Name | Description | |
|---|---|---|
|
Remove(IEnumerable(Of XAttribute)) | Removes every attribute in the source collection from its parent element. |
|
Remove(Of T)(IEnumerable(Of T)) | Removes every node in the source collection from its parent node. |
These methods use snapshot semantics—that is, they copy the attributes in the source collection to a System.Collections.Generic.List(Of T) before disconnecting them from their parents. This is required to avoid issues with mixed imperative/declarative code. For more information, see Mixed Declarative Code/Imperative Code Bugs in the .NET Framework documentation.