System.Xml.XmlWriter.WriteBinHex Method

When overridden in a derived class, encodes the specified binary bytes as BinHex and writes out the resulting text.

Syntax

public virtual void WriteBinHex (byte[] buffer, int index, int count)

Parameters

buffer
Byte array to encode.
index
The position in the buffer indicating the start of the bytes to write.
count
The number of bytes to write.

Exceptions

TypeReason
ArgumentNullException buffer is null.
ArgumentExceptionThe buffer length minus index is less than count.
ArgumentOutOfRangeException index or count is less than zero.
InvalidOperationExceptionThe XmlWriter.WriteState is WriteState.Closed.

Remarks

For the asynchronous version of this method, see XmlWriter.WriteBinHexAsync(Byte[], int, int).

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0