System.ItemType

项的规范类型。

Windows 10 版本 1703、Windows 10 版本 1607、Windows 10、版本 1511、Windows 10、版本 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

言论

PKEY 值在 Propkey.h 中定义。

System.ItemType 的值旨在以编程方式进行分析,可以是以下任一类型:

  • 指向 ProgID 值(HKEY_CLASSES_ROOT\<ProgID>)的文件扩展名,其中包含该类型的显示名称。
  • 包含类型的显示名称的 ProgID 值(HKEY_CLASSES_RROOT\<ProgID>)。

ProgID 的 FriendlyTypeName 元素应该是应用程序名称的本地化版本(@winword.dll,-42),而 ProgID 键的默认值是非本地化名称(Word.Document.12)。

如果没有规范类型,则该值VT_EMPTY。 如果项是文件(System.FileName 未VT_EMPTY),则该值与 system.FileExtension 相同。 如果要在视图中向最终用户显示类型,请使用 System.ItemTypeText

注意

如果项是文件,将 System.ItemType 值传递给 PSFormatForDisplay 会导致 与 System.ItemTypeText相同的值。

 

示例值:

路径 ItemType
c:\mydir\bar\hello.txt .txt
\\server\share\mydir\goodnews.doc 。医生
\\server\share\folder 目录
c:\MyDir\MyFolder 目录
[desktop] 文件夹
/Mailbox Account/Inbox/'re: Hello!' MAPI/IPM。消息

 

propertyDescription

searchInfo

labelInfo

typeInfo

displayInfo

stringFormat

布尔Format

numberFormat

dateTimeFormat

enumeratedList

drawControl

editControl

filterControl

queryControl

编程标识符