Loupe - Log - Monitor - Resolve
Gibraltar Namespace / FileSystemTools Class / StreamContentCopy Method / StreamContentCopy(Stream,Stream,Boolean) Method
The Stream to read from Position 0, restoring its original Position when completed.
The Stream to write into which may optionally be restored to its original position
True to reset the destination stream back to its starting position

In This Topic
    StreamContentCopy(Stream,Stream,Boolean) Method
    In This Topic
    Copy the entire contents of one stream into another, preserving Position.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function StreamContentCopy( _
       ByVal sourceStream As Stream, _
       ByVal destinationStream As Stream, _
       ByVal resetDestinationToOriginalPosition 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.
    Requirements

    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

    See Also