Click or drag to resize

Item Class

Exposes properties methods that retrieve information about a Shell Item.
Inheritance Hierarchy

Namespace:  ShellBoost.Core.WindowsShell
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public class Item : IWithIdList

The Item type exposes the following members.

Properties
  NameDescription
Public propertyAttributes
Attributes that can be retrieved on a Shell item (file or folder) or set of Shell items.
Public propertyDateAccessed
Get the last time the item was accessed.
Public propertyDateCreated
Get the date and time the item was created on the file system where it is currently located.
Public propertyDateModified
Get the date and time of the last modification to the item.
Public propertyFileAttributes
Gets the file attributes.
Public propertyIdList
Gets this item's absolute PIDL.
Public propertyIndex
Gets this item's index when it was retrieved from an enumeration.
Public propertyIsFileSystemFolder
Gets a value indicating whether this instance is a physical folder.
Public propertyIsFolder
Gets a value indicating whether this instance is a folder. Note a Shell Folder can be a physical file (like .zip files for example).
Public propertyIsHidden
Gets a value indicating whether this instance is hidden.
Public propertyIsReadOnly
Gets a value indicating whether this instance is read-only.
Public propertyNamedProperties
Gets the item's named properties.
Public propertyNamedPropertiesAsDictionary
Gets the item's named properties as a dictionary.
Public propertyNativeObject
Gets the underlying Shell native object (IShellItem).
Public propertyParentItem
Gets the parent item.
Public propertyPlaceholderStatus
Gets the placeholder status.
Public propertyProperties
Gets the item's properties.
Public propertyPropertiesAsDictionary
Gets the item's properties as a dictionary.
Public propertySIGDN_DESKTOPABSOLUTEEDITING
Gets the editing name relative to the desktop. In UI this name is suitable for display to the user.
Public propertySIGDN_DESKTOPABSOLUTEPARSING
Gets the parsing name relative to the desktop. In UI this name is suitable for display to the user.
Public propertySIGDN_FILESYSPATH
Gets the item's file system path, if it has one.
Public propertySIGDN_NORMALDISPLAY
Gets the display name relative to the parent folder. In UI this name is generally ideal for display to the user.
Public propertySIGDN_URL
Gets the item's URL, if it has one.
Public propertySize
Gets the file size.
Public propertySyncTransferStatus
Gets or sets the synchronize transfer status.
Top
Methods
  NameDescription
Public methodBindToHandler(Guid, Guid, IBindCtx, Boolean)
Binds to a handler as specified by the handler ID value (BHID).
Public methodBindToHandlerT(Guid, IBindCtx, Boolean)
Binds to a handler as specified by the handler ID value (BHID).
Public methodCompares
Compares this item to the specified shell item.
Public methodStatic memberCreate
Create an item from a name and other parameters. Pass STGM_CREATE for mode parameter to create an item that doesn't necessarily exist.
Public methodExecCommand
Executes the specified command. Depends on the item's IOleCommandTarget optional implementation. The list of supported types for Input is limited to integral types (String, Int32, int64, Boolean, Single, Double, Guid, DateTime,Decimal) and IDictionary types. Values for an IDictionary passed as Input can also contain arrays of aforementioned types.
Public methodStatic memberFromClsid
Gets an Item instance from a native COM object.
Public methodStatic memberFromDataObject
Gets an Item instance from a data object. Only supported on Windows 7 and higher.
Public methodStatic memberFromIDList(IntPtr, Boolean)
Gets an Item instance from a PIDL.
Public methodStatic memberFromIDList(IWithIdList, Boolean)
Gets an Item instance from a PIDL.
Public methodStatic memberFromIDListNoFolder(IntPtr, Boolean)
Gets an Item instance from a PIDL. Never returns a Folder instance to avoid IShellFolder bindings and possible loops or hangs.
Public methodStatic memberFromIDListNoFolder(IWithIdList, Boolean)
Gets an Item instance from a PIDL. Never returns a Folder instance to avoid IShellFolder bindings and possible loops or hangs.
Public methodStatic memberFromItemInKnownFolder
Gets an Item instance from a name and a known folder identifier. If name is null, an item representing the known folder will be returned.
Public methodStatic memberFromItemInKnownFolderNoFolder
Gets an Item instance from a name and a known folder identifier. If name is null, an item representing the known folder will be returned. Never returns a Folder instance to avoid IShellFolder bindings and possible loops or hangs.
Public methodStatic memberFromNativeObject
Gets an Item instance from a native COM object.
Public methodStatic memberFromParsingName
Gets an Item instance from a parsing name.
Public methodStatic memberFromParsingNameNoFolder
Gets an Item instance from a parsing name. Never returns a Folder instance to avoid IShellFolder bindings and possible loops or hangs.
Public methodStatic memberFromShellFolder
Gets an Item instance from a data object.
Public methodGetContextMenu
Gets the Shell's context menu from this item.
Public methodGetDataObject
Gets a data object for the item.
Public methodGetDisplayName
Gets the display name.
Public methodGetIconAsIcon
Gets the item's icon as a GDI icon. You *must* call ShellUtilities.DestroyIcon on the returned icon handle once you have finished to use it.
Public methodGetIconAsImageSource
Gets the item's icon as image source.
Public methodGetNamedProperties
Gets the item's named properties.
Public methodGetNamedPropertiesAsDictionary
Gets the item's named properties as a dictionary.
Public methodStatic memberGetNativeItemFromIDList(IntPtr, Boolean)
Gets an IShellItem instance from a PIDL.
Public methodStatic memberGetNativeItemFromIDList(IWithIdList, Boolean)
Gets an IShellItem instance from a PIDL.
Public methodGetNewMenu
Gets the Shell's New menu from this item.
Public methodGetProperties
Gets the item's properties.
Public methodGetPropertiesAsDictionary
Gets the item's properties as a dictionary.
Public methodGetPropertyValueT
Gets a property value for a given property key.
Public methodGetStorageItem
Gets an IStorageItem (WinRT) instance from this item.
Public methodGetThumbnail
Gets the thumbnail for this item.
Public methodGetThumbnailAsImageSource
Gets the item's thumbnail as image source.
Public methodOpenNativeStream
Opens a native stream from the item.
Public methodOpenRead
Opens a read stream from the item. Note all items don't support streaming.
Public methodOpenStream(IBindCtx, Boolean)
Opens a stream from the item.
Public methodOpenStream(FileMode, FileAccess, FileShare, Boolean)
Opens a stream from the item.
Public methodOpenView
Opens a view on this item and selects it.
Public methodOpenWrite
Opens a write stream from the item. Note all items don't support streaming.
Public methodQueryCommandStatus
Queries the item for the status of one or more commands generated by user interface events. Depends on the item's IOleCommandTarget optional implementation.
Public methodToString
Returns a String that represents this instance.
(Overrides ObjectToString.)
Public methodTryGetPropertyValue(PropertyKey, Object)
Gets a property value for a given property key.
Public methodTryGetPropertyValue(PropertyKey, GETPROPERTYSTOREFLAGS, Object)
Gets a property value for a given property key.
Public methodTryGetPropertyValueT(PropertyKey, T)
Gets a property value for a given property key.
Top
Extension Methods
See Also