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 .doc
\\server\share\folder Directory
c:\MyDir\MyFolder Directory
[desktop] 資料夾
/Mailbox Account/Inbox/'re: Hello!' MAPI/IPM。消息

 

propertyDescription

searchInfo

labelInfo

typeInfo

displayInfo

stringFormat

booleanFormat

numberFormat

dateTimeFormat

enumeratedList

drawControl

editControl

filterControl

queryControl

程式設計識別碼