System.IO.FileStream.Unlock Method

Allows access by other processes to all or part of a file that was previously locked.

Syntax

public virtual void Unlock (long position, long length)

Parameters

position
The beginning of the range to unlock.
length
The range to be unlocked.

Remarks

For a list of common file and directory operations, see Common I/O Tasks.

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0