共用方式為


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

程式設計標識碼