Share via


Write Method (Char[], Int32, Int32)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Writes a subarray of characters to the text string or stream.

Namespace:  System.IO
Assembly:  System.IO (in System.IO.dll)

Syntax

'Declaration
Public Overridable Sub Write ( _
    buffer As Char(), _
    index As Integer, _
    count As Integer _
)
public virtual void Write(
    char[] buffer,
    int index,
    int count
)
public:
virtual void Write(
    array<wchar_t>^ buffer, 
    int index, 
    int count
)
abstract Write : 
        buffer:char[] * 
        index:int * 
        count:int -> unit 
override Write : 
        buffer:char[] * 
        index:int * 
        count:int -> unit 
public function Write(
    buffer : char[], 
    index : int, 
    count : int
)

Parameters

  • index
    Type: System. . :: . .Int32
    The character position in the buffer at which to start retrieving data.

Remarks

This method will write count characters of data into this TextWriter from the buffer character array starting at position index.

This overload is equivalent to the Write(array<Char>[]()[][]) overload for each character in buffer between index and (index + count).

.NET Framework Security

See Also

Reference

TextWriter Class

Write Overload

System.IO Namespace