XmlWriter.XmlSpace Property

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

When overridden in a derived class, gets an XmlSpace representing the current xml:space scope.

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

Syntax

Public Overridable ReadOnly Property XmlSpace As XmlSpace
public virtual XmlSpace XmlSpace { get; }

Property Value

Type: System.Xml..::.XmlSpace
An XmlSpace representing the current xml:space scope.

Value

Meaning

None

This is the default if no xml:space scope exists.

Default

The current scope is xml:space="default".

Preserve

The current scope is xml:space="preserve".

Remarks

This allows one component to find out what state another component has left the writer in.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

XmlWriter Class

System.Xml Namespace