Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CreateMtomReader Method (Stream, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose)

XmlDictionaryReader.CreateMtomReader Method (Stream, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose)

Creates an instance of XmlDictionaryReader that reads XML in the MTOM format.

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

public static XmlDictionaryReader CreateMtomReader (
	Stream stream,
	Encoding[] encodings,
	string contentType,
	XmlDictionaryReaderQuotas quotas,
	int maxBufferSize,
	OnXmlDictionaryReaderClose onClose
)
public static XmlDictionaryReader CreateMtomReader (
	Stream stream, 
	Encoding[] encodings, 
	String contentType, 
	XmlDictionaryReaderQuotas quotas, 
	int maxBufferSize, 
	OnXmlDictionaryReaderClose onClose
)
public static function CreateMtomReader (
	stream : Stream, 
	encodings : Encoding[], 
	contentType : String, 
	quotas : XmlDictionaryReaderQuotas, 
	maxBufferSize : int, 
	onClose : OnXmlDictionaryReaderClose
) : XmlDictionaryReader
Not applicable.

Parameters

stream

The stream from which to read.

encodings

The possible character encodings of the stream.

contentType

The Content-Type MIME type of the message.

quotas

The MIME type of the message.

maxBufferSize

The XmlDictionaryReaderQuotas to apply to the reader.

onClose

The delegate to be called when the reader is closed.

Return Value

An instance of XmlDictionaryReader.

This method reads from a stream, using one of the character encodings specified by encodings, an array of instances of Encoding. The message is of the specified MIME type. If contentType is a null reference (Nothing in Visual Basic), the Content-Type MIME header must be present in the message.

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