File.tryLock

Attempts to lock the specified file segment. If both start and length are zero, the entire file is locked.

struct File
bool
tryLock
(,
ulong start = 0
,
ulong length = 0
)

Return Value

Type: bool

true if the lock was successful, and false if the specified file segment was already locked.

Meta