Freigeben über


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.

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.

Applies to