Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar Namespace / FileSystemTools Class / GetTempFileStreamCopy Method / GetTempFileStreamCopy(Stream) Method
An open Stream to copy from its current Position to its end.

In This Topic
    GetTempFileStreamCopy(Stream) Method
    In This Topic
    Copy the content of a Stream into a temporary file opened for read and write and return the open FileStream which will delete-on-close.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function GetTempFileStreamCopy( _
       ByVal contentStream As Stream _
    ) As FileStream
    public static FileStream GetTempFileStreamCopy( 
       Stream contentStream
    )

    Parameters

    contentStream
    An open Stream to copy from its current Position to its end.

    Return Value

    An open read-write FileStream which is set to delete on close with a copy of the contentStream.
    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