'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.