System.ItemType

The canonical type of the item.

Windows 10, version 1703, Windows 10, version 1607, Windows 10, version 1511, Windows 10, version 1507, Windows 8.1, Windows 8, Windows 7, Windows Vista

propertyDescription
   name = System.ItemType
   shellPKey = PKEY_ItemType
   formatID = 28636AA6-953D-11D2-B5D6-00C04FD918D0
   propID = 11
   SearchInfo
      InInvertedIndex = true
      IsColumn = true
   typeInfo
      type = String
      IsInnate = true

Remarks

PKEY values are defined in Propkey.h.

The value for System.ItemType is intended to be programmatically parsed, and can be either:

  • A file extension that points to a ProgID value (HKEY_CLASSES_ROOT\<ProgID>) holding the display name for the type.
  • A ProgID value (HKEY_CLASSES_RROOT\<ProgID>), containing the display name for the type.

The FriendlyTypeName element of a ProgID should be a localized version of the application name (@winword.dll,-42), while the default value of the ProgID key is a non-localized name (Word.Document.12).

If there is no canonical type, the value is VT_EMPTY. If the item is a file (System.FileName is not VT_EMPTY), the value is the same as System.FileExtension. Use System.ItemTypeText when you want to display the type to end users in a view.

Note  If the item is a file, passing the System.ItemType value to PSFormatForDisplay results in the same value as System.ItemTypeText.
 

Example values:

PathItemType
c:\mydir\bar\hello.txt.txt
\\server\share\mydir\goodnews.doc.doc
\\server\share\folderDirectory
c:\MyDir\MyFolderDirectory
[desktop]Folder
/Mailbox Account/Inbox/'Re: Hello!'MAPI/IPM.Message

 

Related topics

propertyDescription
searchInfo
labelInfo
typeInfo
displayInfo
stringFormat
booleanFormat
numberFormat
dateTimeFormat
enumeratedList
drawControl
editControl
filterControl
queryControl
Programmatic Identifiers

 

 

Show: