MemoryMappedViewStream: BeginWrite |
Begins an asynchronous write operation. (Consider using WriteAsync instead; see the Remarks section.)
Public Function BeginWrite( Buffer ( ) As Byte, ByVal Offset As Long, ByVal Count As Long, Optional ByVal Callback As AsyncCallback, Optional State As Variant ) As IAsyncResult
The default implementation of BeginWrite on a stream calls the Write method synchronously.
Exception | Condition |
---|---|
ArgumentException | Attempted an asynchronous write past the end of the stream, or a disk error occurs. |
ObjectDisposedException | Methods were called after the stream was closed. |
NotSupportedException | The current Stream implementation does not support the write operation. |