XdmWriter.WriteBase64 MethodXdmWriter.WriteBase64 MethodXdmWriter::WriteBase64 Method

Eencodes the specified binary bytes as Base64 and writes out the resulting text.

Syntax

Public Overrides Sub WriteBase64( _
    buffer As Byte[], _
    index As Integer, _
    count As Integer _
)
public override void WriteBase64(
    byte[] buffer,
    int index,
    int count
)
public:
virtual void WriteBase64(
    array<byte> buffer, 
    int index, 
    int count
) override
 

Parameters

buffer

Type: System.Byte[]System.Byte()array<System::Byte>^

Byte array to encode.

index

Type: System.Int32System.Int32System::Int32

The position in the buffer indicating the start of the bytes to write.

count

Type: System.Int32System.Int32System::Int32

The number of bytes to write.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullException buffer is null.
ArgumentExceptionArgumentExceptionArgumentException The buffer length minus index is less than count.
ArgumentOutOfRangeExceptionArgumentOutOfRangeExceptionArgumentOutOfRangeException index or count is less than zero.