Loupe - Log - Monitor - Resolve
Gibraltar Namespace / FileSystemTools Class / GetTempFileStreamCopy Method / GetTempFileStreamCopy(Stream,String,Boolean) Method
An open Stream to copy from its current Position to its end.
The full file name path created.
True to set the file delete on close, false to leave the file after close (caller must delete, rename, etc).

In This Topic
    GetTempFileStreamCopy(Stream,String,Boolean) Method
    In This Topic
    Copy the content of a Stream into a temporary file opened for read and write and return the open FileStream.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function GetTempFileStreamCopy( _
       ByVal contentStream As Stream, _
       ByRef fileName As String, _
       ByVal deleteOnClose As Boolean _
    ) As FileStream
    public static FileStream GetTempFileStreamCopy( 
       Stream contentStream,
       out string fileName,
       bool deleteOnClose
    )

    Parameters

    contentStream
    An open Stream to copy from its current Position to its end.
    fileName
    The full file name path created.
    deleteOnClose
    True to set the file delete on close, false to leave the file after close (caller must delete, rename, etc).

    Return Value

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