StreamContentPump(Stream,Stream,Int64) Method
Pump the contents of one stream from its current Position into another stream at its current Position up to a maximum byte count.
'Declaration
Public Overloads Shared Function StreamContentPump( _
ByVal As Stream, _
ByVal As Stream, _
ByVal As Long _
) As Long
Parameters
- sourceStream
- The Stream to read from, starting at its current Position.
- destinationStream
- The Stream to write into, starting at its current Position.
- maxCount
- The maximum count of bytes to copy. Non-positive count will copy nothing.
Return Value
The total number of bytes copied.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2