LockCheck.GetLockedFileMessage(String) Method
Definition
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.
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.
public:
static System::String ^ GetLockedFileMessage(System::String ^ filePath);
public static string GetLockedFileMessage (string filePath);
static member GetLockedFileMessage : string -> string
Public Shared Function GetLockedFileMessage (filePath As String) As String
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.