Click or drag to resize

RestartManagerGetLockingProcesses Method (String, Boolean)

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
C#
public IReadOnlyList<Process> GetLockingProcesses(
	string filePath,
	bool onlyRestartable = false
)

Parameters

filePath
Type: SystemString
The file path.
onlyRestartable (Optional)
Type: SystemBoolean
if set to true list only restartable processes.

Return Value

Type: IReadOnlyListProcess
A list of processes.
Exceptions
ExceptionCondition
ArgumentNullExceptionfilePath is null.
See Also