XmlWriter.WriteBinHex Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
When overridden in a derived class, encodes the specified binary bytes as BinHex and writes out the resulting text.
Assembly: System.Xml (in System.Xml.dll)
Parameters
- buffer
- Type:
System.Byte
[]
Byte array to encode.
- index
- Type: System.Int32
The position in the buffer indicating the start of the bytes to write.
- count
- Type: System.Int32
The number of bytes to write.
| Exception | Condition |
|---|---|
| ArgumentNullException | buffer is null. |
| InvalidOperationException | The writer is closed or in error state. |
| ArgumentOutOfRangeException | index or count is less than zero. -or- The buffer length minus index is less than count. |
Show: