XmlWriter.WriteBinHexAsync(Byte[], Int32, Int32) 方法
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将指定的二进制字节异步编码为 BinHex
并写出结果文本。
public:
virtual System::Threading::Tasks::Task ^ WriteBinHexAsync(cli::array <System::Byte> ^ buffer, int index, int count);
C#
public virtual System.Threading.Tasks.Task WriteBinHexAsync (byte[] buffer, int index, int count);
abstract member WriteBinHexAsync : byte[] * int * int -> System.Threading.Tasks.Task
override this.WriteBinHexAsync : byte[] * int * int -> System.Threading.Tasks.Task
Public Overridable Function WriteBinHexAsync (buffer As Byte(), index As Integer, count As Integer) As Task
- buffer
- Byte[]
要进行编码的字节数组。
- index
- Int32
缓冲区中指示要写入字节的起始位置的位置。
- count
- Int32
要写入的字节数。
表示 WriteBinHex
异步操作的任务。
在上一次异步操作完成之前调用了 XmlWriter 方法。 在此情况下,会引发 InvalidOperationException 并显示消息“异步操作已在进行中。”
- 或 -
调用了 XmlWriter 异步方法,但未将 Async 标志设置为 true
。 在这种情况下,将引发 InvalidOperationException 并显示消息“如果要使用异步方法,请将 XmlWriterSettings.Async 设置为 true”。
这是具有相同功能的异步版本 WriteBinHex。 若要使用此方法,必须将标志设置为 Async true
。
产品 | 版本 |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7 |
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 |
.NET Standard | 1.0, 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1 |
UWP | 10.0 |