Click or drag to resize

ShellFolderRegistrationToggle Method

Toggles the specified Shell Folder, shown or hidden. This method uses registry calls.

Namespace:  ShellBoost.Core
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public static bool Toggle(
	Guid folderClassId,
	string location,
	RegistrationMode mode = RegistrationMode.User
)

Parameters

folderClassId
Type: SystemGuid
The Shell Folder Class Id.
location
Type: SystemString
The location.
mode (Optional)
Type: ShellBoost.CoreRegistrationMode
The mode. Only User or Machine are supported.

Return Value

Type: Boolean
true if it's shown, false it it's hidden.
Exceptions
ExceptionCondition
ArgumentNullExceptionlocation is null.
See Also