Partager via


Extensions.Remove Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

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.

Overload List

  Name Description
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Remove(IEnumerable<XAttribute>) Removes every attribute in the source collection from its parent element.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Remove<T>(IEnumerable<T>) Removes every node in the source collection from its parent node.

Top

Remarks

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.