The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Synchronization (lock Class).
Provides a mechanism to automate taking a lock that synchronizes access to an object.