XmlDictionaryWriter.CreateMtomWriter Method (Stream, Encoding, Int32, String)

 

Creates an instance of XmlDictionaryWriter that writes XML in the MTOM format.

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

public static XmlDictionaryWriter CreateMtomWriter(
	Stream stream,
	Encoding encoding,
	int maxSizeInBytes,
	string startInfo
)

Parameters

stream
Type: System.IO.Stream

The stream to write to.

encoding
Type: System.Text.Encoding

The character encoding of the stream.

maxSizeInBytes
Type: System.Int32

The maximum number of bytes that are buffered in the writer.

startInfo
Type: System.String

An attribute in the ContentType SOAP header.

Return Value

Type: System.Xml.XmlDictionaryWriter

An instance of XmlDictionaryWriter.

.NET Framework
Available since 3.0
Return to top
Show: