Click or drag to resize

ShellItem Class

Represents a Windows Shell Item. An item can be a simple item or a folder.
Inheritance Hierarchy

Namespace:  callback.ShellBoost.Core
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public class ShellItem : IWithIdList

The ShellItem type exposes the following members.

Constructors
  NameDescription
Public methodShellItem(ShellFolder, ShellItemId)
Initializes a new instance of the ShellItem class.
Public methodShellItem(ShellFolder, Guid)
Initializes a new instance of the ShellItem class. This item's PIDL will be constructed using the parent's root PIDL (instead of the parent pidl) plus the passed in uniqueGuid.
Public methodShellItem(ShellFolder, FileInfo)
Initializes a new instance of the ShellItem class for a physical file item.
Public methodShellItem(ShellFolder, ShellItemId, String)
Initializes a new instance of the ShellItem class for a physical file item.
Top
Properties
  NameDescription
Public propertyAssociationElementList
Gets the association element list of this item.
Public propertyAttributes
Gets or sets the System.SFGAOFlags property value.
Public propertyCanBeCached
Gets or sets a value indicating whether this instance can be cached.
Public propertyCanCopy
Gets or sets a value indicating whether this instance can be copied.
Public propertyCanDelete
Gets or sets a value indicating whether this instance can be deleted.
Public propertyCanLink
Gets or sets a value indicating whether this instance supports shortcut creation.
Public propertyCanMove
Gets or sets a value indicating whether this instance can be moved.
Public propertyCanPaste
Gets or sets a value indicating whether this instance supports clipboard paste operations. This property value is the aggregation of CanMove, CanCopy and IsDropTarget values.
Public propertyCanRename
Gets or sets a value indicating whether this instance can be renamed.
Public propertyDateAccessed
Gets or sets the System.DateAccessed property value.
Public propertyDateCreated
Gets or sets the System.DateCreated property value.
Public propertyDateModified
Gets or sets the System.DateModified property value.
Public propertyDisplayName
Gets or sets the System.ItemNameDisplay property value.
Public propertyFileName
Gets or sets the System.FileName property value.
Public propertyFileSystemPath
Gets or sets the physical file system path. A shell item does not need to have a corresponding file system path.
Public propertyFullDisplayName
Gets this item's display name, that is, including the parent's full display name. The full disply name is also what is used in the Windows Explorer's Address Bar.
Public propertyFullParsingName
Gets this item's parsing name, that is, including the parent's full parsing name.
Public propertyHasPropertySheet
Gets or sets a value indicating whether this instance supports the property sheet.
Public propertyId
Gets this item identifier, which is this item's PIDL last segment.
Public propertyIdList
Gets this item's PIDL.
Public propertyIsDropTarget
Gets or sets a value indicating whether this instance is a drop target.
Public propertyIsFolder
Gets a value indicating whether this instance is a folder.
Public propertyIsHidden
Gets or sets a value indicating whether this instance is hidden.
Public propertyIsPlaceholder
Gets or sets a value indicating whether this instance is a placeholder.
Public propertyItemType
Gets or sets the System.ItemType property value.
Public propertyKindList
Gets the Windows KIND list of this item.
Public propertyParent
Gets the parent folder.
Public propertyParsingName
Gets this item's parsing name.
Public propertyPerceived
Gets the System.PerceivedType property value.
Protected propertyPropertyStore
Gets the property store.
Public propertyReadPropertiesFromShell
Gets or sets a value indicating whether to read properties from shell, if FileSystemPath is not null, when they are not defined by this instance.
Public propertySize
Gets or sets the System.Size property value.
Public propertyThumbnail
Gets or sets this item's thumbnail.
Top
Methods
  NameDescription
Public methodCommitProperties
Commits the property store.
Protected methodCreatePropertyStore
Creates the property store instance.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
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.
Public methodGetContent
Gets the content of this item.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetNullifiedPropertyValue(PropertyKey)
Gets a string property key value. The string will be trimmed and converted to null if its length is 0.
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.
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.
Public methodGetPropertyIndex
Gets a property key index from this item's property store.
Public methodGetPropertyValue(PropertyKey, Object)
Gets a property key value.
Public methodGetPropertyValueT(PropertyKey, T)
Gets a typed property key value.
Public methodGetPropertyValueT(PropertyKey, FuncT)
Gets a typed property key value.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetUri
Gets the URI corresponding to this item.
Protected methodHandleFileSystemSFGAO
Handles flags for File System Shell item.
Protected methodInitialize
Initializes this instance.
Protected methodInitializeFileSystem
Initializes the file system. Called when the FileSystemPath property is set.
Public methodIsPropertyWritable
Determines whether the specified property key value is writable, from this item's property store.
Protected methodMapContextMenuCommand
Maps a context menu command.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodMergeContextMenu
Allows to add items to context menu.
Protected methodMergeContextMenuBottom
Allows to add items to the bottom of the context menu.
Protected methodMergeContextMenuTop
Allows to add items to the top of the context menu.
Protected methodMergeViewMenu
Merges a view menu.
Protected methodModifyContextMenuFlags
The Shell is calling this method to ask for context menu flags modification.
Public methodNotifyAttributes
Notifies the Windows Shell that this item attributes have changed.
Public methodNotifyCreate
Notifies the Windows Shell that this item has been created.
Public methodNotifyDelete
Notifies the Windows Shell that this item has been deleted.
Public methodNotifyRename(ShellItemId)
Notifies the Windows Shell that this item has been renamed.
Public methodNotifyRename(ShellItemIdList)
Notifies the Windows Shell that this item has been renamed.
Public methodNotifyUpdate
Notifies the Windows Shell that this item has been updated.
Protected methodOnAssociationElementListChanged
Called when the AssociationElementList changes.
Protected methodOnDragDropTarget
Called on drag and drop events.
Protected methodOnMenuInvoke
Called when a menu is invoked.
Public methodRefreshShellViews
Refreshes all shell views.
Public methodRefreshShellViews(RefreshViewsOptions)
Refreshes the shell views with options.
Public methodResetShellThumbnail
Resets the Windows Explorer thumbnail cache.
Public methodSetPropertyValue(PropertyDescription, Object)
Sets a property value to this item's property store.
Public methodSetPropertyValue(PropertyKey, Object)
Sets a property key value to this item's property store.
Protected methodShowDefaultContextMenu
Determines if the default context menu should be shown.
Public methodToString
Returns a String that represents this instance.
(Overrides ObjectToString.)
Protected methodTryCompare(ShellItem, ShellFolderColumn, CompareIdReturnValue)
Compares this instance column with another.
Public methodTryCompare(ShellItem, SHCIDS, CompareIdReturnValue)
Compares this instance with another.
Protected methodTryCompareAllFields
Compares this instance all columns with another.
Public methodTryGetContent
Gets the content of this item.
Protected methodTryGetFileSystemValue
Gets a property key value in the case of a File System Shell item.
Public methodTryGetPropertyAt
Gets the property key at a given index, from this item's property store.
Public methodTryGetPropertyValue(PropertyKey, Object)
Gets a property key value.
Public methodTryGetPropertyValueT(PropertyKey, T, IFormatProvider)
Gets a property key value and convert it to the expected type if needed.
Protected methodUnmergeViewMenu
Unmerges the view menu.
Top
Fields
  NameDescription
Public fieldStatic memberDefaultItemAttributes
The default item attributes.
Top
Extension Methods
See Also