HttpRequest.BinaryRead メソッド

現在の入力ストリームから、指定したバイト数のバイナリ読み取りを実行します。

名前空間: System.Web
アセンブリ: System.Web (system.web.dll 内)

構文

'宣言
Public Function BinaryRead ( _
    count As Integer _
) As Byte()
'使用
Dim instance As HttpRequest
Dim count As Integer
Dim returnValue As Byte()

returnValue = instance.BinaryRead(count)
public byte[] BinaryRead (
    int count
)
public:
array<unsigned char>^ BinaryRead (
    int count
)
public byte[] BinaryRead (
    int count
)
public function BinaryRead (
    count : int
) : byte[]
適用できません。

パラメータ

  • count
    読み込むバイト数。

戻り値

バイト配列。

例外

例外の種類 条件

ArgumentOutOfRangeException

count が 0 です。

または

count が利用可能なバイト数を超えています。

解説

BinaryRead メソッドは、ASP との互換性を保つために用意されています。詳細については、「ASP ページから ASP.NET への移行」を参照してください。

プラットフォーム

Windows 98,Windows Server 2000 SP4,Windows CE,Windows Millennium Edition,Windows Mobile for Pocket PC,Windows Mobile for Smartphone,Windows Server 2003,Windows XP Media Center Edition,Windows XP Professional x64 Edition,Windows XP SP2,Windows XP Starter Edition

Microsoft .NET Framework 3.0 は Windows Vista,Microsoft Windows XP SP2,および Windows Server 2003 SP1 でサポートされています。

バージョン情報

.NET Framework

サポート対象 : 3.0,2.0,1.1,1.0

参照

関連項目

HttpRequest クラス
HttpRequest メンバ
System.Web 名前空間