BufferedStream.CopyTo(Stream, Int32) Methode

Definitie

Leest de bytes van de huidige gebufferde stream en schrijft deze naar een andere stream.

public:
 override void CopyTo(System::IO::Stream ^ destination, int bufferSize);
public override void CopyTo(System.IO.Stream destination, int bufferSize);
override this.CopyTo : System.IO.Stream * int -> unit
Public Overrides Sub CopyTo (destination As Stream, bufferSize As Integer)

Parameters

destination
Stream

De stroom waarnaar de inhoud van de huidige gebufferde stream wordt gekopieerd.

bufferSize
Int32

De grootte van de buffer. Deze waarde moet groter zijn dan nul. De standaardgrootte is 81920.

Uitzonderingen

destination is null.

bufferSize is negatief of nul.

De huidige stream biedt geen ondersteuning voor lezen.

– of –

destination biedt geen ondersteuning voor schrijven.

De huidige stroom of destination is gesloten voordat de CopyTo(Stream) methode werd aangeroepen.

Er is een I/O-fout opgetreden.

Van toepassing op