XmlDictionaryReader.CreateBinaryReader Method (Stream, IXmlDictionary, XmlDictionaryReaderQuotas)
.NET Framework 4.5
Creates an instance of XmlDictionaryReader that can read .NET Binary XML Format.
Namespace: System.Xml
Assembly: System.Runtime.Serialization (in System.Runtime.Serialization.dll)
public static XmlDictionaryReader CreateBinaryReader( Stream stream, IXmlDictionary dictionary, XmlDictionaryReaderQuotas quotas )
Parameters
- stream
- Type: System.IO.Stream
The stream from which to read.
- dictionary
- Type: System.Xml.IXmlDictionary
XmlDictionary to use.
- quotas
- Type: System.Xml.XmlDictionaryReaderQuotas
The quotas that apply to this operation.
| Exception | Condition |
|---|---|
| ArgumentNullException | stream or quotas is null. |
Other XmlDictionaryReader properties are set to default values or null.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.