Stream.ValidateBufferArguments(Byte[], Int32, Int32) Metoda

Definice

Ověřuje argumenty poskytnuté metodám čtení a zápisu na .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)

Parametry

buffer
Byte[]

Argument "buffer" pole předaný metodě čtení nebo zápisu.

offset
Int32

Celočíselný argument "posun" předaný metodě čtení nebo zápisu.

count
Int32

Celočíselný argument count předaný metodě čtení nebo zápisu.

Výjimky

buffer byla null.

offset byla mimo hranice buffernebo count byla záporná, nebo rozsah určený kombinací offset a count překročil délku buffer.

Platí pro