Click or drag to resize
TempFileManager Constructor (String, Boolean)
Creates a temp file and manages it.

Namespace: Sdl.FileTypeSupport.Framework
Assembly: Sdl.FileTypeSupport.Framework.Core (in Sdl.FileTypeSupport.Framework.Core.dll) Version: 1.0.0.0 (1.0.2551.0)
Syntax
public TempFileManager(
	string filePath,
	bool lockFile
)

Parameters

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

If 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
Community
Edit

Be the first to Edit the community content of this topic.
Comments