HttpWorkerRequest.ReadEntityBody Método

Definição

Sobrecarregado.Overloaded. Lê dados da solicitação do cliente (quando não pré-carregado).Reads request data from the client (when not preloaded).

Sobrecargas

ReadEntityBody(Byte[], Int32)

Lê dados da solicitação do cliente (quando não pré-carregado).Reads request data from the client (when not preloaded).

ReadEntityBody(Byte[], Int32, Int32)

Lê dados da solicitação do cliente (quando não pré-carregado) usando o buffer do qual ler, o deslocamento de bytes e o máximo de bytes especificados.Reads request data from the client (when not preloaded) by using the specified buffer to read from, byte offset, and maximum bytes.

Comentários

Uma implementação é livre para retornar menos bytes do que o solicitado, mesmo que o final do fluxo não tenha sido atingido.An implementation is free to return fewer bytes than requested even if the end of the stream has not been reached.

Use essa sobrecarga para especificar a resposta para corpos de mensagens maiores que 2 GB.Use this overload to specify the response for message bodies greater than 2 GB.

ReadEntityBody(Byte[], Int32)

Lê dados da solicitação do cliente (quando não pré-carregado).Reads request data from the client (when not preloaded).

public:
 virtual int ReadEntityBody(cli::array <System::Byte> ^ buffer, int size);
public virtual int ReadEntityBody (byte[] buffer, int size);
abstract member ReadEntityBody : byte[] * int -> int
override this.ReadEntityBody : byte[] * int -> int
Public Overridable Function ReadEntityBody (buffer As Byte(), size As Integer) As Integer

Parâmetros

buffer
Byte[]

A matriz de bytes na qual os dados serão lidos.The byte array to read data into.

size
Int32

O número máximo de bytes a serem lidos.The maximum number of bytes to read.

Retornos

Int32

O número de bytes lidos.The number of bytes read.

Comentários

Uma implementação é livre para retornar menos bytes do que o solicitado, mesmo que o final do fluxo não tenha sido atingido.An implementation is free to return fewer bytes than requested even if the end of the stream has not been reached.

Use essa sobrecarga para especificar a resposta para corpos de mensagens maiores que 2 GB.Use this overload to specify the response for message bodies greater than 2 GB.

Aplica-se a

ReadEntityBody(Byte[], Int32, Int32)

Lê dados da solicitação do cliente (quando não pré-carregado) usando o buffer do qual ler, o deslocamento de bytes e o máximo de bytes especificados.Reads request data from the client (when not preloaded) by using the specified buffer to read from, byte offset, and maximum bytes.

public:
 virtual int ReadEntityBody(cli::array <System::Byte> ^ buffer, int offset, int size);
public virtual int ReadEntityBody (byte[] buffer, int offset, int size);
abstract member ReadEntityBody : byte[] * int * int -> int
override this.ReadEntityBody : byte[] * int * int -> int
Public Overridable Function ReadEntityBody (buffer As Byte(), offset As Integer, size As Integer) As Integer

Parâmetros

buffer
Byte[]

A matriz de bytes na qual os dados serão lidos.The byte array to read data into.

offset
Int32

O deslocamento de bytes no qual iniciar a leitura.The byte offset at which to begin reading.

size
Int32

O número máximo de bytes a serem lidos.The maximum number of bytes to read.

Retornos

Int32

O número de bytes lidos.The number of bytes read.

Comentários

Uma implementação é livre para retornar menos bytes do que o solicitado, mesmo que o final do fluxo não tenha sido atingido.An implementation is free to return fewer bytes than requested even if the end of the stream has not been reached.

Use essa sobrecarga para especificar a resposta para corpos de mensagens maiores que 2 GB.Use this overload to specify the response for message bodies greater than 2 GB.

Aplica-se a