This documentation is archived and is not being maintained.

XmlWriter.WriteBinHex Method

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

[Visual Basic]
Public MustOverride Sub WriteBinHex( _
   ByVal buffer() As Byte, _
   ByVal index As Integer, _
   ByVal count As Integer _
public abstract void WriteBinHex(
 byte[] buffer,
 int index,
 int count
public: virtual void WriteBinHex(
 unsigned char buffer __gc[],
 int index,
 int count
) = 0;
public abstract function WriteBinHex(
   buffer : Byte[],
 index : int,
 count : int


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


Exception Type Condition
ArgumentNullException buffer is a null reference (Nothing in Visual Basic).
ArgumentException The buffer length minus index is less than count.
ArgumentOutOfRangeException index or count is less than zero.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

XmlWriter Class | XmlWriter Members | System.Xml Namespace