XmlTextWriter.WriteBinHex(Byte[], Int32, Int32) 方法
定义
将指定的二进制字节编码为 BinHex 并写出结果文本。Encodes the specified binary bytes as binhex and writes out the resulting text.
public:
override void WriteBinHex(cli::array <System::Byte> ^ buffer, int index, int count);
public override void WriteBinHex (byte[] buffer, int index, int count);
override this.WriteBinHex : byte[] * int * int -> unit
Public Overrides Sub WriteBinHex (buffer As Byte(), index As Integer, count As Integer)
参数
- buffer
- Byte[]
要进行编码的字节数组。Byte array to encode.
- index
- Int32
缓冲区中指示要写入字节的起始位置的位置。The position in the buffer indicating the start of the bytes to write.
- count
- Int32
要写入的字节数。The number of bytes to write.
例外
buffer 为 null。buffer is null.
缓冲区长度减去 index 小于 count。The buffer length minus index is less than count.
index 或 count 小于零。index or count is less than zero.
WriteState 为 Closed。The WriteState is Closed.
注解
备注
从 .NET Framework 2.0 开始,我们建议 XmlWriter 使用 XmlWriter.Create 方法和类创建实例, XmlWriterSettings 以利用新功能。Starting with the .NET Framework 2.0, we recommend that you create XmlWriter instances by using the XmlWriter.Create method and the XmlWriterSettings class to take advantage of new functionality.