Click or drag to resize
BackupFileStreamLock Method
Prevents other processes from changing the BackupFileStream while permitting read access.

Namespace: Alphaleonis.Win32.Filesystem
Assembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax
public virtual void Lock(
	long position,
	long length
)

Parameters

position
Type: SystemInt64
The beginning of the range to lock. The value of this parameter must be equal to or greater than zero (0).
length
Type: SystemInt64
The range to be locked.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionposition or length is negative.
ObjectDisposedExceptionThe file is closed.
See Also