FileLock Constructor (String, Boolean, FileLockFileLockDeleteMode) |
Namespace: com.softwarekey.Client.UtilsAssembly: PLUSManaged (in PLUSManaged.dll) Version: 5.23.4.0
Syntax public FileLock(
string filePath,
bool createMissing,
FileLockFileLockDeleteMode deleteMode
)
Public Sub New (
filePath As String,
createMissing As Boolean,
deleteMode As FileLockFileLockDeleteMode
)
public:
FileLock(
String^ filePath,
bool createMissing,
FileLockFileLockDeleteMode deleteMode
)
Parameters
- filePath
- Type: SystemString
The absolute path to the file which will be locked to this process. - createMissing
- Type: SystemBoolean
Whether or not to create the file if it is missing. Creation occurs when attempting to lock the file with the Lock method. - deleteMode
- Type: com.softwarekey.Client.UtilsFileLockFileLockDeleteMode
How and if file deletion is necessary after unlocking the file (FileLockDeleteMode.Never is the default).
See Also