XmlReader.ReadElementContentAsBinHex Method

Reads the element and decodes the BinHex content.

Namespace: System.Xml
Assembly: System.Xml (in system.xml.dll)

Syntax

public virtual int ReadElementContentAsBinHex (
         byte[] buffer,
         intindex,
         intcount
)

Parameters

  • buffer
    The buffer into which to copy the resulting text. This value cannot be a null reference.
  • index
    The offset into the buffer where to start copying the result.
  • count
    The maximum number of bytes to copy into the buffer . The actual number of bytes copied is returned from this method.

Return Value

The number of bytes written to the buffer.

Exceptions

Exception type Condition
ArgumentNullException The buffer value is a null reference.
InvalidOperationException The current node is not an element node.
ArgumentOutOfRangeException The index into the buffer or index + count is larger than the allocated buffer size.
NotSupportedException The XmlReader implementation does not support this method.
XmlException The element contains mixed-content.
FormatException The content cannot be converted to the requested type.

Version Information

Available in the .NET Micro Framework versions 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

XmlReader Class
XmlReader Members
System.Xml Namespace