QuicStream.BeginRead(Byte[], Int32, Int32, AsyncCallback, Object) Metodo

Definizione

Inizia un'operazione di lettura asincrona. Si consiglia di usare ReadAsync(Byte[], Int32, Int32).

public:
 override IAsyncResult ^ BeginRead(cli::array <System::Byte> ^ buffer, int offset, int count, AsyncCallback ^ callback, System::Object ^ state);
public override IAsyncResult BeginRead (byte[] buffer, int offset, int count, AsyncCallback? callback, object? state);
override this.BeginRead : byte[] * int * int * AsyncCallback * obj -> IAsyncResult
Public Overrides Function BeginRead (buffer As Byte(), offset As Integer, count As Integer, callback As AsyncCallback, state As Object) As IAsyncResult

Parametri

buffer
Byte[]

Buffer in cui leggere i dati.

offset
Int32

Offset dei byte nel buffer da cui iniziare la scrittura dei dati letti dal flusso.

count
Int32

Numero massimo di byte da leggere.

callback
AsyncCallback

Callback asincrono facoltativo, da chiamare quando la lettura è completa.

state
Object

Oggetto fornito dall'utente che distingue questa specifica richiesta di lettura asincrona da altre richieste.

Restituisce

Oggetto IAsyncResult che rappresenta la lettura asincrona, che può essere ancora in sospeso.

Si applica a