Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Extensions.Remove Method

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
Public method Static member Supported by Silverlight for Windows Phone Supported by Xbox 360 Remove(IEnumerable<XAttribute>) Removes every attribute in the source collection from its parent element.
Public method Static member Supported by Silverlight for Windows Phone Supported by Xbox 360 Remove<T>(IEnumerable<T>) Removes every node in the source collection from its parent node.
Top

These methods use snapshot semantics—that is, they copy the attributes in the source collection to a System.Collections.Generic.List<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.

Community Additions

ADD
Show:
© 2015 Microsoft