HttpRequest.BinaryRead(Int32) Method

Definition

Performs a binary read of a specified number of bytes from the current input stream.

C#
public byte[] BinaryRead(int count);

Parameters

count
Int32

The number of bytes to read.

Returns

Byte[]

A byte array.

Exceptions

count is 0.

-or-

count is greater than the number of bytes available.

Remarks

The BinaryRead method is provided for compatibility with ASP.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1