Item Class |
Namespace: ShellBoost.Core.WindowsShell
public class Item : IWithIdList
The Item type exposes the following members.
Name | Description | |
---|---|---|
Attributes |
Attributes that can be retrieved on a Shell item (file or folder) or set of Shell items.
| |
DateAccessed |
Get the last time the item was accessed.
| |
DateCreated |
Get the date and time the item was created on the file system where it is currently located.
| |
DateModified |
Get the date and time of the last modification to the item.
| |
FileAttributes |
Gets the file attributes.
| |
IdList |
Gets this item's absolute PIDL.
| |
Index |
Gets this item's index when it was retrieved from an enumeration.
| |
IsFileSystemFolder |
Gets a value indicating whether this instance is a physical folder.
| |
IsFolder |
Gets a value indicating whether this instance is a folder.
Note a Shell Folder can be a physical file (like .zip files for example).
| |
IsHidden |
Gets a value indicating whether this instance is hidden.
| |
IsReadOnly |
Gets a value indicating whether this instance is read-only.
| |
NamedProperties |
Gets the item's named properties.
| |
NamedPropertiesAsDictionary |
Gets the item's named properties as a dictionary.
| |
NativeObject |
Gets the underlying Shell native object (IShellItem).
| |
ParentItem |
Gets the parent item.
| |
PlaceholderStatus |
Gets the placeholder status.
| |
Properties |
Gets the item's properties.
| |
PropertiesAsDictionary |
Gets the item's properties as a dictionary.
| |
SIGDN_DESKTOPABSOLUTEEDITING |
Gets the editing name relative to the desktop. In UI this name is suitable for display to the user.
| |
SIGDN_DESKTOPABSOLUTEPARSING |
Gets the parsing name relative to the desktop. In UI this name is suitable for display to the user.
| |
SIGDN_FILESYSPATH |
Gets the item's file system path, if it has one.
| |
SIGDN_NORMALDISPLAY |
Gets the display name relative to the parent folder. In UI this name is generally ideal for display to the user.
| |
SIGDN_URL |
Gets the item's URL, if it has one.
| |
Size |
Gets the file size.
| |
SyncTransferStatus |
Gets or sets the synchronize transfer status.
|
Name | Description | |
---|---|---|
BindToHandler(Guid, Guid, IBindCtx, Boolean) |
Binds to a handler as specified by the handler ID value (BHID).
| |
BindToHandlerT(Guid, IBindCtx, Boolean) |
Binds to a handler as specified by the handler ID value (BHID).
| |
Compares |
Compares this item to the specified shell item.
| |
Create |
Create an item from a name and other parameters.
Pass STGM_CREATE for mode parameter to create an item that doesn't necessarily exist.
| |
ExecCommand |
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.
| |
FromClsid |
Gets an Item instance from a native COM object.
| |
FromDataObject |
Gets an Item instance from a data object.
Only supported on Windows 7 and higher.
| |
FromIDList(IntPtr, Boolean) |
Gets an Item instance from a PIDL.
| |
FromIDList(IWithIdList, Boolean) |
Gets an Item instance from a PIDL.
| |
FromIDListNoFolder(IntPtr, Boolean) |
Gets an Item instance from a PIDL.
Never returns a Folder instance to avoid IShellFolder bindings and possible loops or hangs.
| |
FromIDListNoFolder(IWithIdList, Boolean) |
Gets an Item instance from a PIDL.
Never returns a Folder instance to avoid IShellFolder bindings and possible loops or hangs.
| |
FromItemInKnownFolder |
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.
| |
FromItemInKnownFolderNoFolder |
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.
| |
FromNativeObject |
Gets an Item instance from a native COM object.
| |
FromParsingName |
Gets an Item instance from a parsing name.
| |
FromParsingNameNoFolder |
Gets an Item instance from a parsing name.
Never returns a Folder instance to avoid IShellFolder bindings and possible loops or hangs.
| |
FromShellFolder |
Gets an Item instance from a data object.
| |
GetContextMenu |
Gets the Shell's context menu from this item.
| |
GetDataObject |
Gets a data object for the item.
| |
GetDisplayName |
Gets the display name.
| |
GetIconAsIcon |
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.
| |
GetIconAsImageSource |
Gets the item's icon as image source.
| |
GetNamedProperties |
Gets the item's named properties.
| |
GetNamedPropertiesAsDictionary |
Gets the item's named properties as a dictionary.
| |
GetNativeItemFromIDList(IntPtr, Boolean) |
Gets an IShellItem instance from a PIDL.
| |
GetNativeItemFromIDList(IWithIdList, Boolean) |
Gets an IShellItem instance from a PIDL.
| |
GetNewMenu |
Gets the Shell's New menu from this item.
| |
GetProperties |
Gets the item's properties.
| |
GetPropertiesAsDictionary |
Gets the item's properties as a dictionary.
| |
GetPropertyValueT |
Gets a property value for a given property key.
| |
GetStorageItem |
Gets an IStorageItem (WinRT) instance from this item.
| |
GetThumbnail |
Gets the thumbnail for this item.
| |
GetThumbnailAsImageSource |
Gets the item's thumbnail as image source.
| |
OpenNativeStream |
Opens a native stream from the item.
| |
OpenRead |
Opens a read stream from the item.
Note all items don't support streaming.
| |
OpenStream(IBindCtx, Boolean) |
Opens a stream from the item.
| |
OpenStream(FileMode, FileAccess, FileShare, Boolean) |
Opens a stream from the item.
| |
OpenView |
Opens a view on this item and selects it.
| |
OpenWrite |
Opens a write stream from the item.
Note all items don't support streaming.
| |
QueryCommandStatus |
Queries the item for the status of one or more commands generated by user interface events.
Depends on the item's IOleCommandTarget optional implementation.
| |
ToString |
Returns a String that represents this instance.
(Overrides ObjectToString.) | |
TryGetPropertyValue(PropertyKey, Object) |
Gets a property value for a given property key.
| |
TryGetPropertyValue(PropertyKey, GETPROPERTYSTOREFLAGS, Object) |
Gets a property value for a given property key.
| |
TryGetPropertyValueT(PropertyKey, T) |
Gets a property value for a given property key.
|
Name | Description | |
---|---|---|
OpenView |
Opens a Windows Explorer window.
(Defined by Extensions.) | |
WithPointer(ActionIntPtr) | Overloaded.
Allocates a buffer, runs the specified action and free the buffer.
(Defined by Extensions.) | |
WithPointerT(FuncIntPtr, T) | Overloaded.
Allocates a buffer, runs the specified function and free the buffer.
(Defined by Extensions.) |