Item Methods |
The Item type exposes the following members.
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.) |