Click or drag to resize

ShellExtensionRegistrarSetRootIconVisibility Method

IT Hit User File System
Sets the visibility of the sync root icon in the Windows File Explorer navigation pane.

Namespace:  ITHit.FileSystem.Windows.ShellExtension
Assembly:  ITHit.FileSystem.Windows.ShellExtension (in ITHit.FileSystem.Windows.ShellExtension.dll) Version: 9.1.29632.0
Syntax
public static void SetRootIconVisibility(
	string syncRootId,
	bool setVisible
)

Parameters

syncRootId
Type: SystemString
Sync root identifier.
setVisible
Type: SystemBoolean
True to make the icon visible; false to hide it.
Remarks
When setVisible is false, sets the System.IsPinnedToNamespaceTree registry value to 0 for the namespace CLSID associated with the sync root, which hides the icon from the navigation pane. When true, no action is taken as the default behavior is to show the icon.
See Also