XmlDictionaryReader.CreateBinaryReader 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立一個可讀取二進位 XML 格式.NETXmlDictionaryReader實例。
多載
備註
這些超載會產生一個XmlDictionaryReader 實例,能讀取.NET二進位 XML 格式。
CreateBinaryReader(Byte[], XmlDictionaryReaderQuotas)
建立一個可讀取二進位 XML 格式.NETXmlDictionaryReader實例。
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)
建立一個可讀取二進位 XML 格式.NETXmlDictionaryReader實例。
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)
建立一個可讀取二進位 XML 格式.NETXmlDictionaryReader實例。
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)
建立一個可讀取二進位 XML 格式.NETXmlDictionaryReader實例。
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)
建立一個可讀取二進位 XML 格式.NETXmlDictionaryReader實例。
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)
建立一個可讀取二進位 XML 格式.NETXmlDictionaryReader實例。
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);
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)
建立一個可讀取二進位 XML 格式.NETXmlDictionaryReader實例。
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 用來使用。
- session
- XmlBinaryReaderSession
XmlBinaryReaderSession 用來使用。
- onClose
- OnXmlDictionaryReaderClose
當讀者關閉時,請委派通知。
傳回
例外狀況
stream 是 null。
備註
其他 XmlDictionaryReader 屬性則設定為預設值或 null。
適用於
CreateBinaryReader(Byte[], Int32, Int32, IXmlDictionary, XmlDictionaryReaderQuotas, XmlBinaryReaderSession)
建立一個可讀取二進位 XML 格式.NETXmlDictionaryReader實例。
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);
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
- session
- XmlBinaryReaderSession
傳回
例外狀況
buffer 是 null。
備註
其他 XmlDictionaryReader 屬性則設定為預設值或 null。
適用於
CreateBinaryReader(Byte[], Int32, Int32, IXmlDictionary, XmlDictionaryReaderQuotas, XmlBinaryReaderSession, OnXmlDictionaryReaderClose)
建立一個可讀取二進位 XML 格式.NETXmlDictionaryReader實例。
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);
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
- session
- XmlBinaryReaderSession
- onClose
- OnXmlDictionaryReaderClose
當讀者關閉時,請委派通知。
傳回
例外狀況
buffer 是 null。
備註
其他 XmlDictionaryReader 屬性則設定為預設值或 null。