XStreamingElement Constructor (XName, Object)
Initializes a new instance of the XStreamingElement class with the specified name and content.
Assembly: System.Xml.Linq (in System.Xml.Linq.dll)
This constructor creates a streaming element with the specified content and attributes.
Queries are not iterated until the XStreamingElement is serialized. This is in contrast to using queries for content for an XElement, where queries are iterated at the time of construction of the new XElement.
For details about the valid content that can be passed to this function, see Valid Content of XElement and XDocument Objects.
.NET FrameworkSupported in: 4.6, 4.5, 4, 3.5
.NET Framework Client ProfileSupported in: 4, 3.5 SP1
XNA FrameworkSupported in: 3.0
Portable Class LibrarySupported in: Portable Class Library
Supported in: Windows Phone 8.1
Supported in: Windows Phone Silverlight 8.1
Supported in: Windows Phone Silverlight 8