Click or drag to resize

RootShellFolder Methods

The RootShellFolder type exposes the following members.

Methods
  NameDescription
Protected methodAddColumn(ShellFolderColumn)
Adds a column to this folder. If a column with the same property key was already present in the Columns collection, it will be replaced.
(Inherited from ShellFolder.)
Protected methodAddColumn(PropertyDescription, SHCOLSTATE)
Adds a column, defined as a property, to this folder. If a column with the same property key was already present in the Columns collection, it will be replaced.
(Inherited from ShellFolder.)
Protected methodAddColumn(PropertyKey, SHCOLSTATE)
Adds a column, defined as a property key, to this folder. If a column with the same property key was already present in the Columns collection, it will be replaced.
(Inherited from ShellFolder.)
Protected methodAddColumn(String, SHCOLSTATE)
Adds a column, using a property key canonical name, to this folder. If a column with the same property key was already present in the Columns collection, it will be replaced.
(Inherited from ShellFolder.)
Public methodAddNewMenuToMenu
Adds the New menu to a menu. It only works if the AddNewMenuTemplatePath value is not null nor empty. If this doesn't work, you can validate the path using Item.FromParsingName() method.
(Inherited from ShellFolder.)
Public methodCommitProperties
Commits the property store.
(Inherited from ShellItem.)
Protected methodCreateFileSystemFolder(DirectoryInfo)
Creates a file system ShellItem instance for a folder under this folder. The info's full path must a direct child of this full path.
(Inherited from ShellFolder.)
Protected methodCreateFileSystemFolder(ShellItemId, String)
Creates a file system ShellItem instance for a folder under this folder. The file system path must a direct child of this full path.
(Inherited from ShellFolder.)
Protected methodCreateFileSystemItem(FileInfo)
Creates a file system ShellItem instance for a file under this folder. The info's full path must a direct child of this full path.
(Inherited from ShellFolder.)
Protected methodCreateFileSystemItem(FileSystemInfo, ShellItemIdList)
Creates a file system ShellItem or ShellFolder instance for a file system entry. The file system entry path must be a child at any level of this full path.
(Inherited from ShellFolder.)
Protected methodCreateFileSystemItem(ShellItemId, String)
Creates a file system ShellItem instance for a file under this folder The file system path must a direct child of this full path.
(Inherited from ShellFolder.)
Protected methodCreateInformationBarMenu
Called when ShellBoost asks for an information bar menu. It expects items to be added as children of the menu instance. This implementation does not add any items to the menu instance.
(Inherited from ShellFolder.)
Protected methodCreatePropertyStore
Creates the property store instance.
(Inherited from ShellItem.)
Protected methodEnumerateFileSystemInfos(DirectoryInfo)
Enumerates file system files and folders.
(Inherited from ShellFolder.)
Protected methodEnumerateFileSystemInfos(DirectoryInfo, SHCONTF)
Enumerates file system files and folders.
(Inherited from ShellFolder.)
Protected methodEnumerateFileSystemInfos(DirectoryInfo, String)
Enumerates file system files and folders.
(Inherited from ShellFolder.)
Protected methodEnumerateFileSystemInfos(DirectoryInfo, SHCONTF, String)
Enumerates file system files and folders.
(Inherited from ShellFolder.)
Protected methodEnumFileSystemItems
Enumerates File System Shell Items
(Inherited from ShellFolder.)
Public methodEnumItems
Enumerates Shell Items. To maximize performance, the GetItem(ShellItemId) and GetItem(string) methods should be overriden.
(Inherited from ShellFolder.)
Protected methodFreezePropertyStore
Freezes the property store. The property store can be frozen when a client asks for the property store as a whole. Overriding this method allows you to add properties to the frozen store.
(Inherited from ShellItem.)
Public methodGetContent
Gets the content of this item.
(Inherited from ShellItem.)
Protected methodGetDefaultDisplayColumn
Gets the index of the default display column. The default implementation returns -1 (unspecified).
(Inherited from ShellFolder.)
Protected methodGetDefaultSortedColumn
Gets the index of the default sorted column. The default implementation returns -1 (unspecified).
(Inherited from ShellFolder.)
Protected methodGetFullDisplayName
Gets this item's display name, that is, including the parent's full display name.
Protected methodGetFullParsingName
Gets this item's display name, that is, including the parent's full display name.
Protected methodGetInformationBar
Called when ShellBoost asks for an information bar. This implementation returns null. To be valid, an information bar must have a non empty guid and a non null nor empty message.
(Inherited from ShellFolder.)
Public methodGetItem(ShellItemId)
Gets an item using its identifier. This method should be overriden for direct access as the current implementation uses the EnumItems method.
(Inherited from ShellFolder.)
Public methodGetItem(ShellItemIdList)
Gets a Shell Item using its full PIDL from the root. This method is only supported if this instance is the root folder.
(Inherited from ShellFolder.)
Protected methodGetItem(String)
Gets an item using its display name. This method should be overriden for direct access as the current implementation uses the EnumItems method.
(Inherited from ShellFolder.)
Public methodGetNullifiedPropertyValue(PropertyKey)
Gets a string property key value. The string will be trimmed and converted to null if its length is 0.
(Inherited from ShellItem.)
Public methodGetNullifiedPropertyValue(PropertyKey, String)
Gets a string property key value. The string will be trimmed and converted to the default value if its length is 0.
(Inherited from ShellItem.)
Public methodGetNullifiedPropertyValue(PropertyKey, IFormatProvider, String)
Gets a string property key value. The string will be trimmed and converted to the default value if its length is 0.
(Inherited from ShellItem.)
Public methodGetPaneState
Gets the Windows Explorer pane state.
(Inherited from ShellFolder.)
Public methodGetPropertyIndex
Gets a property key index from this item's property store.
(Inherited from ShellItem.)
Public methodGetPropertyValue(PropertyKey, Object)
Gets a property key value.
(Inherited from ShellItem.)
Public methodGetPropertyValueT(PropertyKey, T)
Gets a typed property key value.
(Inherited from ShellItem.)
Public methodGetPropertyValueT(PropertyKey, FuncT)
Gets a typed property key value.
(Inherited from ShellItem.)
Protected methodGetRootFullDisplayName
Gets this item's display name, that is, including the parent's full display name.
(Inherited from ShellFolder.)
Protected methodGetRootFullParsingName
Gets this item's display name, that is, including the parent's full display name.
(Inherited from ShellFolder.)
Public methodGetUri
Gets the URI corresponding to this item.
(Inherited from ShellItem.)
Protected methodHandleFileSystemSFGAO
Handles flags for File System Shell item.
(Inherited from ShellItem.)
Protected methodHandleInformationBarMenu
Called when an information bar menu item has been clicked. This implementation does nothing.
(Inherited from ShellFolder.)
Protected methodInitialize
Initializes this instance.
(Inherited from ShellFolder.)
Protected methodInitializeFileSystem
Initializes the file system. Called when the FileSystemPath property is set.
(Inherited from ShellFolder.)
Public methodIsPropertyWritable
Determines whether the specified property key value is writable, from this item's property store.
(Inherited from ShellItem.)
Protected methodMapContextMenuCommand
Maps a context menu command.
(Inherited from ShellItem.)
Protected methodMergeContextMenu
Allows to add items to context menu.
(Inherited from ShellItem.)
Protected methodMergeContextMenuBottom
Allows to add items to the bottom of the context menu.
(Inherited from ShellItem.)
Protected methodMergeContextMenuTop
Allows to add items to the top of the context menu.
(Inherited from ShellItem.)
Protected methodMergeViewMenu
Merges a view menu.
(Inherited from ShellItem.)
Protected methodModifyContextMenuFlags
The Shell is calling this method to ask for context menu flags modification.
(Inherited from ShellItem.)
Public methodNotifyAttributes
Notifies the Windows Shell that this item attributes have changed.
(Inherited from ShellItem.)
Public methodNotifyCreate
Notifies the Windows Shell that this item has been created.
(Inherited from ShellItem.)
Public methodNotifyDelete
Notifies the Windows Shell that this item has been deleted.
(Inherited from ShellItem.)
Public methodNotifyRename(ShellItemId)
Notifies the Windows Shell that this item has been renamed.
(Inherited from ShellItem.)
Public methodNotifyRename(ShellItemIdList)
Notifies the Windows Shell that this item has been renamed.
(Inherited from ShellItem.)
Public methodNotifyUpdate
Notifies the Windows Shell that this item has been updated.
(Inherited from ShellItem.)
Protected methodOnAssociationElementListChanged
Called when the AssociationElementList changes.
(Inherited from ShellItem.)
Protected methodOnCommandExec
Called when a specified command is executed.
(Inherited from ShellFolder.)
Protected methodOnCommandQueryStatus
Called when the status of one or more commands, generated by user interface events, is queried for.
(Inherited from ShellFolder.)
Protected methodOnDragDropTarget
Called on drag and drop events.
(Inherited from ShellItem.)
Protected methodOnFileDialogEvent
Called when a notification is sent by a Dialog Box.
(Inherited from ShellFolder.)
Protected methodOnGetDataObjectEvent
Called when a data object is requested for a shell item. This will not be called if OnGetOnDemandDataObjectEvent has set a valid OnDemandDataObject instance.
(Inherited from ShellFolder.)
Protected methodOnGetDragDropParametersEvent
Called before a drag & drop operation is executed.
(Inherited from ShellFolder.)
Protected methodOnGetDynamicColumnDetailsEvent
Called when the native proxy is asking for a dynamic column details.
(Inherited from ShellFolder.)
Protected methodOnGetFileDialogPropertiesEvent
Called for determining what properties to gather for a future file dialog event.
(Inherited from ShellFolder.)
Protected methodOnGetFolderSettingsEvent
Called when the native proxy is asking for the current view settings.
(Inherited from ShellFolder.)
Protected methodOnGetNameMaxLengthEvent
Called for validating a Shell Item's name.
(Inherited from ShellFolder.)
Protected methodOnGetNameValidCharactersEvent
Called for validating a Shell Item's name.
(Inherited from ShellFolder.)
Protected methodOnGetOnDemandDataObjectEvent
Called when an on-demand data object is requested for a shell item. If this method is overriden and sets a valid OnDemandDataObject instance, OnGetDataObjectEvent will not be called.
(Inherited from ShellFolder.)
Protected methodOnManageColumnsEvent
Called when the native proxy is asking for columns management.
(Inherited from ShellFolder.)
Protected methodOnMenuInvoke
Called when a menu is invoked.
(Inherited from ShellItem.)
Protected methodOnMergingContextMenu
Called when a context menu is merging. Overriding this or one of ShellItems's MergeContextMenuXXX methods is similar but this is recommended to support future enhancements.
(Inherited from ShellFolder.)
Protected methodOnOperate
Called when a Shell Operation occurs.
(Inherited from ShellFolder.)
Protected methodOnRefresh
Called when the view is refreshed, for example when the end-user presses the F5 key from the list view.
(Inherited from ShellFolder.)
Protected methodOnSelectAndEditItemEvent
Called when a shell item has been created with the New menu.
(Inherited from ShellFolder.)
Protected methodOnSetFolderServer
Called when the folder server is set.
(Inherited from ShellFolder.)
Public methodParseItem(String)
Gets an item using its relative path from this folder. The path is a list of display names separated by the '\' character. If path is null or empty, this folder is returned.
(Inherited from ShellFolder.)
Public methodParseItem(String, ShellItemIdList)
Gets an item using its relative path from this folder. The path is a list of display names separated by the '\' character. If path is null or empty, this folder is returned.
(Inherited from ShellFolder.)
Public methodRefreshShellViews
Refreshes all shell views.
(Inherited from ShellItem.)
Public methodRefreshShellViews(RefreshViewsOptions)
Refreshes the shell views with options.
(Inherited from ShellItem.)
Protected methodRemoveAllColumns
Removes all columns.
(Inherited from ShellFolder.)
Protected methodRemoveColumn(PropertyKey)
Removes a column using the related property's key.
(Inherited from ShellFolder.)
Protected methodRemoveColumn(ShellFolderColumn)
Removes a column.
(Inherited from ShellFolder.)
Protected methodRemoveColumn(String)
Removes a column using the related property's canonical name.
(Inherited from ShellFolder.)
Public methodResetShellThumbnail
Resets the Windows Explorer thumbnail cache.
(Inherited from ShellItem.)
Public methodSetPropertyValue(PropertyDescription, Object)
Sets a property value to this item's property store.
(Inherited from ShellItem.)
Public methodSetPropertyValue(PropertyKey, Object)
Sets a property key value to this item's property store.
(Inherited from ShellItem.)
Protected methodShowDefaultContextMenu
Determines if the default context menu should be shown.
(Inherited from ShellItem.)
Public methodToString
Returns a String that represents this instance.
(Inherited from ShellItem.)
Protected methodTryCompare(ShellItem, ShellFolderColumn, CompareIdReturnValue)
Compares this instance column with another.
(Inherited from ShellItem.)
Public methodTryCompare(ShellItem, SHCIDS, CompareIdReturnValue)
Compares this instance with another.
(Inherited from ShellItem.)
Protected methodTryCompareAllFields
Compares this instance all columns with another.
(Inherited from ShellItem.)
Public methodTryGetAttributes
Gets the attributes for a PIDL that may not represent an existing Shell Item. This method is only implemented for file system Shell Items with PIDLs created from the ShellItemIdList.FromFileSystem method. If you override it, make sure you also override TryParseItem, TryGetDisplayName and TryGetPropertyValue in a consistent manner.
(Inherited from ShellFolder.)
Public methodTryGetContent
Gets the content of this item.
(Inherited from ShellItem.)
Public methodTryGetDisplayName
Gets the display name for a PIDL that may not represent an existing Shell Item. This method is only implemented for file system Shell Items with PIDLs created from the ShellItemIdList.FromFileSystem method. If you override it, make sure you also override TryParseItem, TryGetAttributes and TryGetPropertyValue in a consistent manner.
(Inherited from ShellFolder.)
Protected methodTryGetFileSystemValue
Gets a property key value in the case of a File System Shell item.
(Inherited from ShellItem.)
Public methodTryGetPropertyAt
Gets the property key at a given index, from this item's property store.
(Inherited from ShellItem.)
Public methodTryGetPropertyValue(PropertyKey, Object)
Gets a property key value.
(Inherited from ShellItem.)
Public methodTryGetPropertyValue(ShellItemIdList, PropertyKey, Object)
Gets a property key value. or a PIDL that may not represent an existing Shell Item. This method returns false. If you override it, make sure you also override TryParseItem and TryGetDisplayName and TryGetAttributesin a consistent manner.
(Inherited from ShellFolder.)
Public methodTryGetPropertyValueT(PropertyKey, T, IFormatProvider)
Gets a property key value and convert it to the expected type if needed.
(Inherited from ShellItem.)
Public methodTryParseItem
Parses a display name for a Shell Item that may not exist. This method is only implemented for file system Shell Items. It will use the CreateFileSystemItem and CreateFileSystemFolder that you can override if you want it to use your derived classes instead. If you override it, make sure you also override TryGetDisplayName, TryGetAttributes and TryGetPropertyValue in a consistent manner.
(Inherited from ShellFolder.)
Protected methodUnmergeViewMenu
Unmerges the view menu.
(Inherited from ShellItem.)
Top
See Also