Stream.ValidateCopyToArguments(Stream, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Validates arguments provided to the CopyTo(Stream, Int32) or CopyToAsync(Stream, Int32, CancellationToken) methods.
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)
Parameters
- bufferSize
- Int32
The integer "bufferSize" argument passed to the copy method.
Exceptions
destination
was null
.
bufferSize
was not a positive value.
destination
does not support writing.
destination
does not support writing or reading.
Applies to
Зворотний зв’язок
https://aka.ms/ContentUserFeedback.
Очікується незабаром: протягом 2024 року ми будемо припиняти використання механізму реєстрації проблем у GitHub для зворотного зв’язку щодо вмісту й замінювати його новою системою зворотного зв’язку. Докладніше:Надіслати й переглянути відгук про