LockCheck.GetLockedFileMessage(String) Method

Definition

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.

C#
public static string GetLockedFileMessage(string filePath);

Parameters

filePath
String

The path of the file to check.

Returns

A message to inform the user which processes have a lock on the file if known, Empty otherwise. Always returns Empty on operating systems other than Windows.

Applies to

Proizvod Verzije
MSBuild 17
MSBuild (.NET Core) 17