Class AsyncStreamReaderOptions
Configuration options for StreamReader.
public class AsyncStreamReaderOptions : AsyncStreamEncodingOptions, IAsyncOptions, IParameterObject, IEncodingOptions
- Inheritance
-
AsyncStreamReaderOptions
- Implements
- Inherited Members
Constructors
AsyncStreamReaderOptions()
Initializes a new instance of the AsyncStreamReaderOptions class.
public AsyncStreamReaderOptions()
Remarks
The following table shows the initial property values for an instance of AsyncStreamReaderOptions.
| Property | Initial Value |
|---|---|
| Preamble | DefaultPreambleSequence |
| Encoding | DefaultEncoding |
| BufferSize | 81920 |
Properties
BufferSize
Gets or sets the size of the buffer.
public int BufferSize { get; set; }
Property Value
- int
The size of the buffer.
Exceptions
- ArgumentOutOfRangeException
valueis lower than or equal to 0.