Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar Namespace / FileSystemTools Class / StreamContentCopy Method / StreamContentCopy(Stream,Stream) Method
The Stream to read from Position 0, restoring its original Position when completed.
The Stream to write into, which will be advanced by the number of bytes written

In This Topic
    StreamContentCopy(Stream,Stream) Method
    In This Topic
    Copy the entire contents of one stream into another, preserving the source Position.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function StreamContentCopy( _
       ByVal sourceStream As Stream, _
       ByVal destinationStream As Stream _
    ) As Long
    public static long StreamContentCopy( 
       Stream sourceStream,
       Stream destinationStream
    )

    Parameters

    sourceStream
    The Stream to read from Position 0, restoring its original Position when completed.
    destinationStream
    The Stream to write into, which will be advanced by the number of bytes written

    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