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
Syntaxpublic static void SetRootIconVisibility(
string syncRootId,
bool setVisible
)
Public Shared Sub SetRootIconVisibility (
syncRootId As String,
setVisible As Boolean
)
public:
static void SetRootIconVisibility(
String^ syncRootId,
bool setVisible
)
static member SetRootIconVisibility :
syncRootId : string *
setVisible : bool -> unit
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