COMCharStream Class
This API supports the product infrastructure and is not intended to be used directly from your code.
Represents a stream that sends its data to an IMessageReceiver. The data is stored in a buffer until the data is flushed or the stream is closed.
Assembly: Microsoft.JScript (in Microsoft.JScript.dll)
| Name | Description | |
|---|---|---|
![]() | COMCharStream(IMessageReceiver) | This API supports the product infrastructure and is not intended to be used directly from your code. Initializes a new instance of the COMCharStream class. |
| Name | Description | |
|---|---|---|
![]() | CanRead | This API supports the product infrastructure and is not intended to be used directly from your code. Gets a value that indicates whether the current stream supports reading.(Overrides Stream.CanRead.) |
![]() | CanSeek | This API supports the product infrastructure and is not intended to be used directly from your code. Gets a value that indicates whether the current stream supports seeking.(Overrides Stream.CanSeek.) |
![]() | CanTimeout | Gets a value that determines whether the current stream can time out.(Inherited from Stream.) |
![]() | CanWrite | This API supports the product infrastructure and is not intended to be used directly from your code. Gets a value that indicates whether the current stream supports writing.(Overrides Stream.CanWrite.) |
![]() | Length | This API supports the product infrastructure and is not intended to be used directly from your code. Gets the length of the stream.(Overrides Stream.Length.) |
![]() | Position | This API supports the product infrastructure and is not intended to be used directly from your code. Gets the current position in the stream. The set method does not do anything.(Overrides Stream.Position.) |
![]() | ReadTimeout | Gets or sets a value, in miliseconds, that determines how long the stream will attempt to read before timing out. (Inherited from Stream.) |
![]() | WriteTimeout | Gets or sets a value, in miliseconds, that determines how long the stream will attempt to write before timing out. (Inherited from Stream.) |
| Name | Description | |
|---|---|---|
![]() | BeginRead(Byte(), Int32, Int32, AsyncCallback, Object) | |
![]() | BeginWrite(Byte(), Int32, Int32, AsyncCallback, Object) | Begins an asynchronous write operation. (Consider using WriteAsync instead; see the Remarks section.)(Inherited from Stream.) |
![]() | Close() | This API supports the product infrastructure and is not intended to be used directly from your code. Sends this stream's data to the IMessageReceiver and clears its buffer.(Overrides Stream.Close().) |
![]() | CopyTo(Stream) | Reads the bytes from the current stream and writes them to another stream.(Inherited from Stream.) |
![]() | CopyTo(Stream, Int32) | Reads the bytes from the current stream and writes them to another stream, using a specified buffer size.(Inherited from Stream.) |
![]() | CopyToAsync(Stream) | Asynchronously reads the bytes from the current stream and writes them to another stream.(Inherited from Stream.) |
![]() | CopyToAsync(Stream, Int32) | Asynchronously reads the bytes from the current stream and writes them to another stream, using a specified buffer size.(Inherited from Stream.) |
![]() | CopyToAsync(Stream, Int32, CancellationToken) | Asynchronously reads the bytes from the current stream and writes them to another stream, using a specified buffer size and cancellation token.(Inherited from Stream.) |
![]() | CreateObjRef(Type) | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.(Inherited from MarshalByRefObject.) |
![]() | CreateWaitHandle() | Obsolete. Allocates a WaitHandle object.(Inherited from Stream.) |
![]() | Dispose() | |
![]() | Dispose(Boolean) | |
![]() | EndRead(IAsyncResult) | |
![]() | EndWrite(IAsyncResult) | Ends an asynchronous write operation. (Consider using WriteAsync instead; see the Remarks section.)(Inherited from Stream.) |
![]() | Equals(Object) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | Flush() | This API supports the product infrastructure and is not intended to be used directly from your code. Sends this stream's data to the IMessageReceiver and clears its buffer.(Overrides Stream.Flush().) |
![]() | FlushAsync() | Asynchronously clears all buffers for this stream and causes any buffered data to be written to the underlying device.(Inherited from Stream.) |
![]() | FlushAsync(CancellationToken) | Asynchronously clears all buffers for this stream, causes any buffered data to be written to the underlying device, and monitors cancellation requests.(Inherited from Stream.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetLifetimeService() | Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.) |
![]() | GetType() | |
![]() | InitializeLifetimeService() | Obtains a lifetime service object to control the lifetime policy for this instance.(Inherited from MarshalByRefObject.) |
![]() | MemberwiseClone() | |
![]() | MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object.(Inherited from MarshalByRefObject.) |
![]() | ObjectInvariant() | |
![]() | Read(Byte(), Int32, Int32) | This API supports the product infrastructure and is not intended to be used directly from your code. Throws a NotSupportedException exception in all cases.(Overrides Stream.Read(Byte(), Int32, Int32).) |
![]() | ReadAsync(Byte(), Int32, Int32) | Asynchronously reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.(Inherited from Stream.) |
![]() | ReadAsync(Byte(), Int32, Int32, CancellationToken) | Asynchronously reads a sequence of bytes from the current stream, advances the position within the stream by the number of bytes read, and monitors cancellation requests.(Inherited from Stream.) |
![]() | ReadByte() | Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream.(Inherited from Stream.) |
![]() | Seek(Int64, SeekOrigin) | This API supports the product infrastructure and is not intended to be used directly from your code. Sets the position in the current stream. This method does not do anything. It always returns 0.(Overrides Stream.Seek(Int64, SeekOrigin).) |
![]() | SetLength(Int64) | This API supports the product infrastructure and is not intended to be used directly from your code. Sets the length of the stream.(Overrides Stream.SetLength(Int64).) |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
![]() | Write(Byte(), Int32, Int32) | This API supports the product infrastructure and is not intended to be used directly from your code. Writes the specified byte data to the stream.(Overrides Stream.Write(Byte(), Int32, Int32).) |
![]() | WriteAsync(Byte(), Int32, Int32) | Asynchronously writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.(Inherited from Stream.) |
![]() | WriteAsync(Byte(), Int32, Int32, CancellationToken) | Asynchronously writes a sequence of bytes to the current stream, advances the current position within this stream by the number of bytes written, and monitors cancellation requests.(Inherited from Stream.) |
![]() | WriteByte(Byte) | Writes a byte to the current position in the stream and advances the position within the stream by one byte.(Inherited from Stream.) |
Available since 1.1
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


