Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

LockCheck Class

Definition

Namespace:
Microsoft.Build.Utilities
Assembly:
Microsoft.Build.Utilities.Core.dll
Package:
Microsoft.Build.Utilities.Core v17.14.8
Package:
Microsoft.Build.Utilities.Core v18.3.3
Package:
Microsoft.Build.Utilities.Core v18.4.0
Source:
LockCheck.cs
Source:
LockCheck.cs
Source:
LockCheck.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

This class implements checking what processes are locking a file on Windows. It uses the Restart Manager API to do this. Other platforms are skipped. Use the method GetLockedFileMessage(String) to get a message to inform the user which processes have a lock on a given file.

public ref class LockCheck abstract sealed
public static class LockCheck
type LockCheck = class
Public Class LockCheck
Inheritance
LockCheck

Methods

Name Description
GetLockedFileMessage(String)

Try to get a message to inform the user which processes have a lock on a given file. On Windows it uses the Restart Manager API.

Applies to