Loupe - Log - Monitor - Resolve
Gibraltar Namespace / FileSystemTools Class / GetTempFileStreamCopy Method / GetTempFileStreamCopy(Stream,String) Method
An open Stream to copy from its current Position to its end.
The full file name path created.

In This Topic
    GetTempFileStreamCopy(Stream,String) 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 NOT delete-on-close.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function GetTempFileStreamCopy( _
       ByVal contentStream As Stream, _
       ByRef fileName As String _
    ) As FileStream
    public static FileStream GetTempFileStreamCopy( 
       Stream contentStream,
       out string fileName
    )

    Parameters

    contentStream
    An open Stream to copy from its current Position to its end.
    fileName
    The full file name path created.

    Return Value

    An open read-write FileStream which will NOT 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