Click or drag to resize

IOUtilitiesFileUnprotect Method

Unprotects a file.

Namespace:  ShellBoost.Core.Utilities
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public static bool FileUnprotect(
	string path,
	bool throwOnError = true
)

Parameters

path
Type: SystemString
The file path.
throwOnError (Optional)
Type: SystemBoolean
if set to true errors may be throw in case of errors.

Return Value

Type: Boolean
true if the file was unprotected, false otherwise.
Exceptions
ExceptionCondition
ArgumentNullExceptionpath is null.
See Also