XmlDictionaryWriter.CreateBinaryWriter Method (Stream, IXmlDictionary, XmlBinaryWriterSession, Boolean)

Creates an instance of XmlDictionaryWriter that writes WCF binary XML format.

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

public static XmlDictionaryWriter CreateBinaryWriter (
	Stream stream,
	IXmlDictionary dictionary,
	XmlBinaryWriterSession session,
	bool ownsStream
)
public static XmlDictionaryWriter CreateBinaryWriter (
	Stream stream, 
	IXmlDictionary dictionary, 
	XmlBinaryWriterSession session, 
	boolean ownsStream
)
public static function CreateBinaryWriter (
	stream : Stream, 
	dictionary : IXmlDictionary, 
	session : XmlBinaryWriterSession, 
	ownsStream : boolean
) : XmlDictionaryWriter
Not applicable.

Parameters

stream

The stream from which to read.

dictionary

The XmlDictionary to use as the shared dictionary.

session

The XmlBinaryWriterSession to use.

ownsStream

If true, stream is closed by the writer when done; otherwise false.

Return Value

An instance of XmlDictionaryWriter.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show: