XStreamingElement Constructor

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

Initializes a new instance of the XStreamingElement class.

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 methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 XStreamingElement(XName) Initializes a new instance of the XElement class from the specified XName.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 XStreamingElement(XName, Object) Initializes a new instance of the XStreamingElement class with the specified name and content.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 XStreamingElement(XName, array<Object[]) Initializes a new instance of the XStreamingElement class with the specified name and content.

Top

Remarks

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 constructor, see Valid Content of XElement and XDocument Objects.