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

In This Topic
    BeginWrite Method
    In This Topic
    Begins an asynchronous write operation. (Consider using System.IO.Stream.WriteAsync(System.Byte[],System.Int32,System.Int32) instead.)
    Syntax
    'Declaration
     
    
    Public Overrides Function BeginWrite( _
       ByVal buffer() As Byte, _
       ByVal offset As Integer, _
       ByVal count As Integer, _
       ByVal callback As AsyncCallback, _
       ByVal state As Object _
    ) As IAsyncResult
    public override IAsyncResult BeginWrite( 
       byte[] buffer,
       int offset,
       int count,
       AsyncCallback callback,
       object state
    )

    Parameters

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

    Return Value

    An IAsyncResult that represents the asynchronous write, which could still be pending.
    Exceptions
    ExceptionDescription
    Attempted an asynchronous write 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 write operation.
    See Also