Click or drag to resize

RestartManagerGetLockingProcesses Method (IEnumerableString, Boolean, Boolean)

Gets a list of processes locking a list of specific files.

Namespace:  ShellBoost.Core.Utilities
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public IReadOnlyList<Process> GetLockingProcesses(
	IEnumerable<string> filePaths,
	bool onlyRestartable = false,
	bool throwOnError = true
)

Parameters

filePaths
Type: System.Collections.GenericIEnumerableString
The files paths.
onlyRestartable (Optional)
Type: SystemBoolean
if set to true list only restartable processes.
throwOnError (Optional)
Type: SystemBoolean
if set to true errors may be throw in case of Windows Restart Manager errors.

Return Value

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