Stream.ValidateBufferArguments(Byte[], Int32, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
驗證提供來讀取和寫入方法的引數 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" 引數。
例外狀況
buffer
was null
。
offset
超出 buffer
或的範圍,或 count
的組合所指定的範圍 offset
count
超過的長度 buffer
。