'Declaration
Public Overloads Shared Function StreamContentCopy( _ ByVal sourceStream As Stream, _ ByVal destinationStream As Stream, _ ByVal resetDestinationToOriginalPosition As Boolean _ ) As Long
public static long StreamContentCopy( Stream sourceStream, Stream destinationStream, bool resetDestinationToOriginalPosition )
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.