| TempFileManager Constructor (String, Boolean) |
Creates a temp file and manages it.
Namespace: Sdl.FileTypeSupport.FrameworkAssembly: Sdl.FileTypeSupport.Framework.Core (in Sdl.FileTypeSupport.Framework.Core.dll) Version: 1.0.0.0 (1.0.2343.0)
Syntaxpublic TempFileManager(
string filePath,
bool lockFile
)
Public Sub New (
filePath As String,
lockFile As Boolean
)
public:
TempFileManager(
String^ filePath,
bool lockFile
)
new :
filePath : string *
lockFile : bool -> TempFileManagerParameters
- filePath
- Type: SystemString
A temp filename to create or empty for a random filename to be generated. - lockFile
- Type: SystemBoolean
If set to true the file is created in this constructor and locked with a read write stream
available through LockedFileStream.
RemarksIf an empty file name is given then a random temp file is created.
If only a file name is given then a temp folder is created and a file with the file name is created.
If a full or partial path is given the then a temp folder with the last folder name in the path is created
and a file with the file name is created within it.
See Also
Comments