adTempus API
ArcanaDevelopment.adTempus.Shared Namespace / BlowfishStream Class / BeginRead Method
The buffer to read the data into.
The byte offset in buffer at which to begin writing data read from the stream.
The maximum number of bytes to read.
An optional asynchronous callback, to be called when the read is complete.
A user-provided object that distinguishes this particular asynchronous read request from other requests.

In This Topic
    BeginRead Method
    In This Topic
    Begins an asynchronous read operation. (Consider using System.IO.Stream.ReadAsync(System.Byte[],System.Int32,System.Int32) instead.)
    Syntax
    'Declaration
     
    
    Public Overrides Function BeginRead( _
       ByVal buffer() As Byte, _
       ByVal offset As Integer, _
       ByVal count As Integer, _
       ByVal callback As AsyncCallback, _
       ByVal state As Object _
    ) As IAsyncResult

    Parameters

    buffer
    The buffer to read the data into.
    offset
    The byte offset in buffer at which to begin writing data read from the stream.
    count
    The maximum number of bytes to read.
    callback
    An optional asynchronous callback, to be called when the read is complete.
    state
    A user-provided object that distinguishes this particular asynchronous read request from other requests.

    Return Value

    An System.IAsyncResult that represents the asynchronous read, which could still be pending.
    Exceptions
    ExceptionDescription
    Attempted an asynchronous read past the end of the stream, or a disk error occurs.
    One or more of the arguments is invalid.
    Methods were called after the stream was closed.
    The current Stream implementation does not support the read operation.
    See Also