GetTempFileStreamCopy(Stream,String,Boolean) Method
Copy the content of a Stream into a temporary file opened for read and write and return the open FileStream.
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.
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