XElement.ReplaceAttributes Method (Object)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Replaces the attributes of this element with the specified content.
Assembly: System.Xml.Linq (in System.Xml.Linq.dll)
Parameters
- content
- Type: System.Object
The content that will replace the attributes of this element.
This method first removes existing attributes. It then adds the specified content.
For more information about the valid content that can be passed to this function, see Valid Content of XElement and XDocument Objects in the .NET Framework documentation.
Show: