XsWin32FileStream.Lock Method | |
Prevents other processes from reading from or writing to the
FileStream.
Namespace:
XSharp.IO
Assembly:
XSharp.Core (in XSharp.Core.dll) Version: 2.19
Syntax VIRTUAL METHOD Lock(
position AS INT64,
length AS INT64
) AS VOID
public override void Lock(
long position,
long length
)
Request Example
View SourceParameters
- position
- Type: Int64
The beginning of the range to lock. The value of this parameter must be equal to or greater than zero (0). - length
- Type: Int64
The range to be locked.
Exceptions Remarks This method calls the Windows LockFile() function directly.
See Also