CreateWriter Method

XContainer.CreateWriter Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Creates an XmlWriter that can be used to add nodes to the XContainer.

Namespace:  System.Xml.Linq
Assembly:  System.Xml.Linq (in System.Xml.Linq.dll)

'Declaration
Public Function CreateWriter As XmlWriter

Return Value

Type: System.Xml.XmlWriter
An XmlWriter that is ready to have content written to it.

While serializing, namespace prefixes are inferred from the namespace attributes in the XML tree.

For more information, see Working with Namespacese in the .NET Framework documentation.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft