Class NativeLockFile
public static class NativeLockFile
- Inheritance
-
NativeLockFile
Methods
TryLockFile(FileStream, long, long, bool, bool)
public static bool TryLockFile(FileStream fileStream, long offset, long count, bool exclusive, bool failImmediately = false)
Parameters
fileStream
FileStreamoffset
longcount
longexclusive
boolfailImmediately
bool
Returns
TryUnlockFile(FileStream, long, long)
public static void TryUnlockFile(FileStream fileStream, long offset, long count)
Parameters
fileStream
FileStreamoffset
longcount
long