StreamContentCopy(Stream,Stream,Boolean) Method
Copy the entire contents of one stream into another, preserving Position.
'Declaration
Public Overloads Shared Function StreamContentCopy( _
ByVal As Stream, _
ByVal As Stream, _
ByVal As Boolean _
) As Long
Parameters
- sourceStream
- The Stream to read from Position 0, restoring its original Position when completed.
- destinationStream
- The Stream to write into which may optionally be restored to its original position
- resetDestinationToOriginalPosition
- True to reset the destination stream back to its starting position
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