Stream.ValidateCopyToArguments(Stream, Int32) Método

Definición

Valida los argumentos proporcionados a los CopyTo(Stream, Int32) métodos o CopyToAsync(Stream, Int32, CancellationToken) .

protected:
 static void ValidateCopyToArguments(System::IO::Stream ^ destination, int bufferSize);
protected static void ValidateCopyToArguments (System.IO.Stream destination, int bufferSize);
static member ValidateCopyToArguments : System.IO.Stream * int -> unit
Protected Shared Sub ValidateCopyToArguments (destination As Stream, bufferSize As Integer)

Parámetros

destination
Stream

Argumento Stream "destination" pasado al método copy.

bufferSize
Int32

Argumento entero "bufferSize" pasado al método copy.

Excepciones

destination era null.

bufferSize no era un valor positivo.

destination no admite la escritura.

destination no admite la escritura ni la lectura.

Se aplica a