XmlDictionaryReader.CreateBinaryReader 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建XmlDictionaryReader的实例,该实例可以读取.NET二进制 XML 格式。
重载
注解
这些重载创建一个XmlDictionaryReader实例,该实例可以读取.NET二进制 XML 格式。
CreateBinaryReader(Byte[], XmlDictionaryReaderQuotas)
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
创建XmlDictionaryReader的实例,该实例可以读取.NET二进制 XML 格式。
public:
static System::Xml::XmlDictionaryReader ^ CreateBinaryReader(cli::array <System::Byte> ^ buffer, System::Xml::XmlDictionaryReaderQuotas ^ quotas);
public static System.Xml.XmlDictionaryReader CreateBinaryReader(byte[] buffer, System.Xml.XmlDictionaryReaderQuotas quotas);
static member CreateBinaryReader : byte[] * System.Xml.XmlDictionaryReaderQuotas -> System.Xml.XmlDictionaryReader
Public Shared Function CreateBinaryReader (buffer As Byte(), quotas As XmlDictionaryReaderQuotas) As XmlDictionaryReader
参数
- buffer
- Byte[]
要从中读取的缓冲区。
- quotas
- XmlDictionaryReaderQuotas
适用于此操作的配额。
返回
例外
buffer 是 null。
注解
其他 XmlDictionaryReader 属性设置为默认值或 null。
适用于
CreateBinaryReader(Stream, XmlDictionaryReaderQuotas)
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
创建XmlDictionaryReader的实例,该实例可以读取.NET二进制 XML 格式。
public:
static System::Xml::XmlDictionaryReader ^ CreateBinaryReader(System::IO::Stream ^ stream, System::Xml::XmlDictionaryReaderQuotas ^ quotas);
public static System.Xml.XmlDictionaryReader CreateBinaryReader(System.IO.Stream stream, System.Xml.XmlDictionaryReaderQuotas quotas);
static member CreateBinaryReader : System.IO.Stream * System.Xml.XmlDictionaryReaderQuotas -> System.Xml.XmlDictionaryReader
Public Shared Function CreateBinaryReader (stream As Stream, quotas As XmlDictionaryReaderQuotas) As XmlDictionaryReader
参数
- stream
- Stream
要从中读取的流。
- quotas
- XmlDictionaryReaderQuotas
适用于此操作的配额。
返回
例外
stream 是 null。
注解
其他 XmlDictionaryReader 属性设置为默认值或 null。
适用于
CreateBinaryReader(Stream, IXmlDictionary, XmlDictionaryReaderQuotas)
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
创建XmlDictionaryReader的实例,该实例可以读取.NET二进制 XML 格式。
public:
static System::Xml::XmlDictionaryReader ^ CreateBinaryReader(System::IO::Stream ^ stream, System::Xml::IXmlDictionary ^ dictionary, System::Xml::XmlDictionaryReaderQuotas ^ quotas);
public static System.Xml.XmlDictionaryReader CreateBinaryReader(System.IO.Stream stream, System.Xml.IXmlDictionary dictionary, System.Xml.XmlDictionaryReaderQuotas quotas);
public static System.Xml.XmlDictionaryReader CreateBinaryReader(System.IO.Stream stream, System.Xml.IXmlDictionary? dictionary, System.Xml.XmlDictionaryReaderQuotas quotas);
static member CreateBinaryReader : System.IO.Stream * System.Xml.IXmlDictionary * System.Xml.XmlDictionaryReaderQuotas -> System.Xml.XmlDictionaryReader
Public Shared Function CreateBinaryReader (stream As Stream, dictionary As IXmlDictionary, quotas As XmlDictionaryReaderQuotas) As XmlDictionaryReader
参数
- stream
- Stream
要从中读取的流。
- dictionary
- IXmlDictionary
XmlDictionary 要使用的。
- quotas
- XmlDictionaryReaderQuotas
适用于此操作的配额。
返回
例外
stream 或 quotas 为 null.
注解
其他 XmlDictionaryReader 属性设置为默认值或 null。
适用于
CreateBinaryReader(Byte[], Int32, Int32, XmlDictionaryReaderQuotas)
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
创建XmlDictionaryReader的实例,该实例可以读取.NET二进制 XML 格式。
public:
static System::Xml::XmlDictionaryReader ^ CreateBinaryReader(cli::array <System::Byte> ^ buffer, int offset, int count, System::Xml::XmlDictionaryReaderQuotas ^ quotas);
public static System.Xml.XmlDictionaryReader CreateBinaryReader(byte[] buffer, int offset, int count, System.Xml.XmlDictionaryReaderQuotas quotas);
static member CreateBinaryReader : byte[] * int * int * System.Xml.XmlDictionaryReaderQuotas -> System.Xml.XmlDictionaryReader
Public Shared Function CreateBinaryReader (buffer As Byte(), offset As Integer, count As Integer, quotas As XmlDictionaryReaderQuotas) As XmlDictionaryReader
参数
- buffer
- Byte[]
要从中读取的缓冲区。
- offset
- Int32
要从中读取 buffer的起始位置。
- count
- Int32
可从中读取 buffer的字节数。
- quotas
- XmlDictionaryReaderQuotas
适用于此操作的配额。
返回
例外
buffer 是 null。
注解
其他 XmlDictionaryReader 属性设置为默认值或 null。
适用于
CreateBinaryReader(Stream, IXmlDictionary, XmlDictionaryReaderQuotas, XmlBinaryReaderSession)
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
创建XmlDictionaryReader的实例,该实例可以读取.NET二进制 XML 格式。
public:
static System::Xml::XmlDictionaryReader ^ CreateBinaryReader(System::IO::Stream ^ stream, System::Xml::IXmlDictionary ^ dictionary, System::Xml::XmlDictionaryReaderQuotas ^ quotas, System::Xml::XmlBinaryReaderSession ^ session);
public static System.Xml.XmlDictionaryReader CreateBinaryReader(System.IO.Stream stream, System.Xml.IXmlDictionary dictionary, System.Xml.XmlDictionaryReaderQuotas quotas, System.Xml.XmlBinaryReaderSession session);
public static System.Xml.XmlDictionaryReader CreateBinaryReader(System.IO.Stream stream, System.Xml.IXmlDictionary? dictionary, System.Xml.XmlDictionaryReaderQuotas quotas, System.Xml.XmlBinaryReaderSession? session);
static member CreateBinaryReader : System.IO.Stream * System.Xml.IXmlDictionary * System.Xml.XmlDictionaryReaderQuotas * System.Xml.XmlBinaryReaderSession -> System.Xml.XmlDictionaryReader
Public Shared Function CreateBinaryReader (stream As Stream, dictionary As IXmlDictionary, quotas As XmlDictionaryReaderQuotas, session As XmlBinaryReaderSession) As XmlDictionaryReader
参数
- stream
- Stream
要从中读取的流。
- dictionary
- IXmlDictionary
XmlDictionary 要使用的。
- quotas
- XmlDictionaryReaderQuotas
适用于此操作的配额。
- session
- XmlBinaryReaderSession
XmlBinaryReaderSession 要使用的。
返回
例外
stream 是 null。
注解
其他 XmlDictionaryReader 属性设置为默认值或 null。
适用于
CreateBinaryReader(Byte[], Int32, Int32, IXmlDictionary, XmlDictionaryReaderQuotas)
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
创建XmlDictionaryReader的实例,该实例可以读取.NET二进制 XML 格式。
public:
static System::Xml::XmlDictionaryReader ^ CreateBinaryReader(cli::array <System::Byte> ^ buffer, int offset, int count, System::Xml::IXmlDictionary ^ dictionary, System::Xml::XmlDictionaryReaderQuotas ^ quotas);
public static System.Xml.XmlDictionaryReader CreateBinaryReader(byte[] buffer, int offset, int count, System.Xml.IXmlDictionary dictionary, System.Xml.XmlDictionaryReaderQuotas quotas);
public static System.Xml.XmlDictionaryReader CreateBinaryReader(byte[] buffer, int offset, int count, System.Xml.IXmlDictionary? dictionary, System.Xml.XmlDictionaryReaderQuotas quotas);
static member CreateBinaryReader : byte[] * int * int * System.Xml.IXmlDictionary * System.Xml.XmlDictionaryReaderQuotas -> System.Xml.XmlDictionaryReader
Public Shared Function CreateBinaryReader (buffer As Byte(), offset As Integer, count As Integer, dictionary As IXmlDictionary, quotas As XmlDictionaryReaderQuotas) As XmlDictionaryReader
参数
- buffer
- Byte[]
要从中读取的缓冲区。
- offset
- Int32
要从中读取 buffer的起始位置。
- count
- Int32
可从中读取 buffer的字节数。
- dictionary
- IXmlDictionary
XmlDictionary 要使用的。
- quotas
- XmlDictionaryReaderQuotas
适用于此操作的配额。
返回
例外
count 小于零或大于缓冲区长度减去偏移量。
注解
其他 XmlDictionaryReader 属性设置为默认值或 null。
适用于
CreateBinaryReader(Stream, IXmlDictionary, XmlDictionaryReaderQuotas, XmlBinaryReaderSession, OnXmlDictionaryReaderClose)
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
创建XmlDictionaryReader的实例,该实例可以读取.NET二进制 XML 格式。
public:
static System::Xml::XmlDictionaryReader ^ CreateBinaryReader(System::IO::Stream ^ stream, System::Xml::IXmlDictionary ^ dictionary, System::Xml::XmlDictionaryReaderQuotas ^ quotas, System::Xml::XmlBinaryReaderSession ^ session, System::Xml::OnXmlDictionaryReaderClose ^ onClose);
public static System.Xml.XmlDictionaryReader CreateBinaryReader(System.IO.Stream stream, System.Xml.IXmlDictionary? dictionary, System.Xml.XmlDictionaryReaderQuotas quotas, System.Xml.XmlBinaryReaderSession? session, System.Xml.OnXmlDictionaryReaderClose? onClose);
public static System.Xml.XmlDictionaryReader CreateBinaryReader(System.IO.Stream stream, System.Xml.IXmlDictionary dictionary, System.Xml.XmlDictionaryReaderQuotas quotas, System.Xml.XmlBinaryReaderSession session, System.Xml.OnXmlDictionaryReaderClose onClose);
static member CreateBinaryReader : System.IO.Stream * System.Xml.IXmlDictionary * System.Xml.XmlDictionaryReaderQuotas * System.Xml.XmlBinaryReaderSession * System.Xml.OnXmlDictionaryReaderClose -> System.Xml.XmlDictionaryReader
Public Shared Function CreateBinaryReader (stream As Stream, dictionary As IXmlDictionary, quotas As XmlDictionaryReaderQuotas, session As XmlBinaryReaderSession, onClose As OnXmlDictionaryReaderClose) As XmlDictionaryReader
参数
- stream
- Stream
要从中读取的流。
- dictionary
- IXmlDictionary
XmlDictionary 要使用的。
- quotas
- XmlDictionaryReaderQuotas
- session
- XmlBinaryReaderSession
XmlBinaryReaderSession 要使用的。
- onClose
- OnXmlDictionaryReaderClose
关闭读取器时要调用的委托。
返回
例外
stream 是 null。
注解
其他 XmlDictionaryReader 属性设置为默认值或 null。
适用于
CreateBinaryReader(Byte[], Int32, Int32, IXmlDictionary, XmlDictionaryReaderQuotas, XmlBinaryReaderSession)
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
创建XmlDictionaryReader的实例,该实例可以读取.NET二进制 XML 格式。
public:
static System::Xml::XmlDictionaryReader ^ CreateBinaryReader(cli::array <System::Byte> ^ buffer, int offset, int count, System::Xml::IXmlDictionary ^ dictionary, System::Xml::XmlDictionaryReaderQuotas ^ quotas, System::Xml::XmlBinaryReaderSession ^ session);
public static System.Xml.XmlDictionaryReader CreateBinaryReader(byte[] buffer, int offset, int count, System.Xml.IXmlDictionary dictionary, System.Xml.XmlDictionaryReaderQuotas quotas, System.Xml.XmlBinaryReaderSession session);
public static System.Xml.XmlDictionaryReader CreateBinaryReader(byte[] buffer, int offset, int count, System.Xml.IXmlDictionary? dictionary, System.Xml.XmlDictionaryReaderQuotas quotas, System.Xml.XmlBinaryReaderSession? session);
static member CreateBinaryReader : byte[] * int * int * System.Xml.IXmlDictionary * System.Xml.XmlDictionaryReaderQuotas * System.Xml.XmlBinaryReaderSession -> System.Xml.XmlDictionaryReader
Public Shared Function CreateBinaryReader (buffer As Byte(), offset As Integer, count As Integer, dictionary As IXmlDictionary, quotas As XmlDictionaryReaderQuotas, session As XmlBinaryReaderSession) As XmlDictionaryReader
参数
- buffer
- Byte[]
要从中读取的缓冲区。
- offset
- Int32
要从中读取 buffer的起始位置。
- count
- Int32
可从中读取 buffer的字节数。
- dictionary
- IXmlDictionary
要使用的 XmlDictionary 。
- session
- XmlBinaryReaderSession
要使用的 XmlBinaryReaderSession 。
返回
例外
buffer 是 null。
注解
其他 XmlDictionaryReader 属性设置为默认值或 null。
适用于
CreateBinaryReader(Byte[], Int32, Int32, IXmlDictionary, XmlDictionaryReaderQuotas, XmlBinaryReaderSession, OnXmlDictionaryReaderClose)
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
- Source:
- XmlDictionaryReader.cs
创建XmlDictionaryReader的实例,该实例可以读取.NET二进制 XML 格式。
public:
static System::Xml::XmlDictionaryReader ^ CreateBinaryReader(cli::array <System::Byte> ^ buffer, int offset, int count, System::Xml::IXmlDictionary ^ dictionary, System::Xml::XmlDictionaryReaderQuotas ^ quotas, System::Xml::XmlBinaryReaderSession ^ session, System::Xml::OnXmlDictionaryReaderClose ^ onClose);
public static System.Xml.XmlDictionaryReader CreateBinaryReader(byte[] buffer, int offset, int count, System.Xml.IXmlDictionary? dictionary, System.Xml.XmlDictionaryReaderQuotas quotas, System.Xml.XmlBinaryReaderSession? session, System.Xml.OnXmlDictionaryReaderClose? onClose);
public static System.Xml.XmlDictionaryReader CreateBinaryReader(byte[] buffer, int offset, int count, System.Xml.IXmlDictionary dictionary, System.Xml.XmlDictionaryReaderQuotas quotas, System.Xml.XmlBinaryReaderSession session, System.Xml.OnXmlDictionaryReaderClose onClose);
static member CreateBinaryReader : byte[] * int * int * System.Xml.IXmlDictionary * System.Xml.XmlDictionaryReaderQuotas * System.Xml.XmlBinaryReaderSession * System.Xml.OnXmlDictionaryReaderClose -> System.Xml.XmlDictionaryReader
Public Shared Function CreateBinaryReader (buffer As Byte(), offset As Integer, count As Integer, dictionary As IXmlDictionary, quotas As XmlDictionaryReaderQuotas, session As XmlBinaryReaderSession, onClose As OnXmlDictionaryReaderClose) As XmlDictionaryReader
参数
- buffer
- Byte[]
要从中读取的缓冲区。
- offset
- Int32
要从中读取 buffer的起始位置。
- count
- Int32
可从中读取 buffer的字节数。
- dictionary
- IXmlDictionary
要使用的 XmlDictionary 。
- session
- XmlBinaryReaderSession
要使用的 XmlBinaryReaderSession 。
- onClose
- OnXmlDictionaryReaderClose
关闭读取器时要调用的委托。
返回
例外
buffer 是 null。
注解
其他 XmlDictionaryReader 属性设置为默认值或 null。