Work with version control locks

TFS 2018

Visual Studio 2019 | Visual Studio 2022

When you use Team Foundation Version Control (TFVC) to manage files, you can lock a file or folder to prevent it from being checked out and altered.

To learn more, see any of the following articles: