XmlReader.ReadElementContentAsBase64 Method
Reads the element and decodes the Base64 content.
Namespace: System.Xml
Assembly: System.Xml (in system.xml.dll)
Syntax
public virtual int ReadElementContentAsBase64 (
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.