RestartManagerGetLockingProcesses Method (String, Boolean, Boolean, Exception) |
Gets a list of processes locking a specific file.
Namespace:
ShellBoost.Core.Utilities
Assembly:
ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax public IReadOnlyList<Process> GetLockingProcesses(
string filePath,
bool onlyRestartable,
bool throwOnError,
out Exception error
)
Parameters
- filePath
- Type: SystemString
The file path. - onlyRestartable
- Type: SystemBoolean
if set to true list only restartable processes. - throwOnError
- Type: SystemBoolean
if set to true errors may be throw in case of Windows Restart Manager errors. - error
- Type: SystemException
The error, if any.
Return Value
Type:
IReadOnlyListProcessA list of processes.
Exceptions See Also