XDeclaration.Standalone Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets or sets the standalone property for this document.
Assembly: System.Xml.Linq (in System.Xml.Linq.dll)
The following example uses this property to print the standalone property of a declaration.
The following example creates a document that contains a declaration.
Dim output As New StringBuilder Dim xd As XDeclaration = New XDeclaration("1.0", "utf-8", "yes") output.Append(xd.Version) output.Append(Environment.NewLine) output.Append(xd.Encoding) output.Append(Environment.NewLine) output.Append(xd.Standalone) output.Append(Environment.NewLine) OutputTextBlock.Text = output.ToString()
Show: