Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft