Click or drag to resize

Item Methods

The Item type exposes the following members.

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 methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
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.
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.)
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 methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
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 methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
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