Stream.ValidateBufferArguments(Byte[], Int32, Int32) 方法

定義

驗證在上 Stream讀取和寫入方法所提供的自變數。

protected:
 static void ValidateBufferArguments(cli::array <System::Byte> ^ buffer, int offset, int count);
protected static void ValidateBufferArguments (byte[] buffer, int offset, int count);
static member ValidateBufferArguments : byte[] * int * int -> unit
Protected Shared Sub ValidateBufferArguments (buffer As Byte(), offset As Integer, count As Integer)

參數

buffer
Byte[]

傳遞至讀取或寫入方法的陣列 「buffer」 自變數。

offset
Int32

傳遞至讀取或寫入方法的整數 「offset」 自變數。

count
Int32

傳遞至讀取或寫入方法的整數 「count」 自變數。

例外狀況

buffernull

offset超出 的界限buffer,或 count 為負數,或是 和 的組合countoffset所指定的範圍超過 的buffer長度。

適用於