HttpWorkerRequest.BeginRead Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Commence une opération de lecture asynchrone du corps de l’entité de requête.
public:
virtual IAsyncResult ^ BeginRead(cli::array <System::Byte> ^ buffer, int offset, int count, AsyncCallback ^ callback, System::Object ^ state);
public virtual IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state);
abstract member BeginRead : byte[] * int * int * AsyncCallback * obj -> IAsyncResult
override this.BeginRead : byte[] * int * int * AsyncCallback * obj -> IAsyncResult
Public Overridable Function BeginRead (buffer As Byte(), offset As Integer, count As Integer, callback As AsyncCallback, state As Object) As IAsyncResult
Paramètres
- buffer
- Byte[]
Mémoire tampon dans laquelle lire les données.
- offset
- Int32
Décalage d’octet dans la mémoire tampon à partir duquel commencer l’écriture de données.
- count
- Int32
Nombre maximal d’octets à lire.
- callback
- AsyncCallback
Méthode à appeler lorsqu’une opération asynchrone correspondante se termine.
- state
- Object
Objet fourni par l’utilisateur qui distingue cette lecture asynchrone particulière des autres requêtes.