XdmWriter.WriteChars MethodXdmWriter.WriteChars MethodXdmWriter::WriteChars Method

Writes text one buffer at a time.

Syntax

Public Overrides Sub WriteChars( _
    buffer As Char[], _
    index As Integer, _
    count As Integer _
)
public override void WriteChars(
    char[] buffer,
    int index,
    int count
)
public:
virtual void WriteChars(
    array<char> buffer, 
    int index, 
    int count
) override
 

Parameters

buffer

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

Character array containing the text to write.

index

Type: System.Int32System.Int32System::Int32

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

count

Type: System.Int32System.Int32System::Int32

The number of characters to write.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullException buffer is null.
ArgumentOutOfRangeExceptionArgumentOutOfRangeExceptionArgumentOutOfRangeException index or count is less than zero. -or- The buffer length minus index is less than count; the call results in surrogate pair characters being split or an invalid surrogate pair being written.
ArgumentExceptionArgumentExceptionArgumentException The buffer parameter value is not valid.