Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

System.ItemType

The canonical type of the item.

propertyDescription
   name = System.ItemType
   shellPKey = PKEY_ItemType
   formatID = 28636AA6-953D-11D2-B5D6-00C04FD918D0
   propID = 11
   searchInfo
      inInvertedIndex = true
      isColumn = true
      isColumnSparse = false
      columnIndexType = OnDisk
      maxSize = 128
   labelInfo
      label = Type
      sortDescription
      invitationText = Specify type
      hideLabel = false
   typeInfo
      type = String
      groupingRange = Discrete
      isInnate = true
      canBePurged
      multipleValues = false
      isGroup = false
      aggregationType = Union
      isTreeProperty = false
      isViewable = true
      isQueryable (Vista) = false
      includeInFullTextQuery (Vista) = false
      searchRawValue (Windows 7) = true
      conditionType = String
      defaultOperation = Equal
   aliasInfo
      sortByAlias = None
      additionalSortByAliases = None
   displayInfo
      defaultColumnWidth = 15
      displayType
      alignment = Left
      relativeDescriptionType = General
      defaultSortDirection = Ascending
      stringFormat
         formatAs = General
      booleanFormat
         formatAs = YesNo
      numberFormat
         formatAs = General
         formatDurationAs = hh:mm:ss
      dateTimeFormat
         formatAs = General
         formatTimeAs = ShortTime
         formatDateAs = ShortDate
      enumeratedList
         defaultText
         useValueForDefault = False
         enum
            value
            text
         enumRange
            minValue
            setValue
            text
      drawControl
         control = Default
      editControl
         control = Default
      filterControl
         control = Default
      queryControl
         control = Default

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:
© 2017 Microsoft