CreateDictionaryWriter Method

XmlDictionaryWriter.CreateDictionaryWriter Method

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

Creates an instance of XmlDictionaryWriter from an existing XmlWriter.

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

public static XmlDictionaryWriter CreateDictionaryWriter(
	XmlWriter writer
)

Parameters

writer
Type: System.Xml.XmlWriter
An instance of XmlWriter.

Return Value

Type: System.Xml.XmlDictionaryWriter
An instance of XmlDictionaryWriter.

ExceptionCondition
ArgumentNullException

writer is null.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft