Share via


File Locking

File locking temporarily prevents changes to a file or folder on the server. You can use file locking to edit and check in a file without risk of merge conflicts or to freeze all changes in a file.

There are two types of file locks, a check in lock and a check out lock. With a check in lock, users can edit a file in their local workspace but can not check in the changes to the server until the lock is removed. A check out lock prevents users from changing files in their local workspace.

Files may be locked from Source Control Explorer in Visual Studio 2005 or from the Visual Studio 2005 command prompt.

Locking a file in Visual Studio 2005