System.FileExtension

識別檔案型專案的副檔名,包括前置期間。 這個屬性衍生自 System.FileName。 如果 System.FileName 沒有副檔名或VT_EMPTY,則此屬性的值應該VT_EMPTY。

若要取得任何專案的類型 (包括不是檔案) 的專案,請使用 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.FileExtension
   shellPKey = PKEY_FileExtension
   formatID = E4F10A3C-49E6-405D-8288-A23BD4EEAA6C
   propID = 100
   SearchInfo
      InInvertedIndex = true
      IsColumn = true
   typeInfo
      type = String
      IsInnate = true

備註

PKEY 值定義于 Propkey.h 中。

如果 System.FileName 是VT_EMPTY,這個屬性也應該是空的。 否則,這個屬性應該由 System.FileName 的資料來源適當衍生。 如果 System.FileName 不包含副檔名, 則 System.FileExtension 應該VT_EMPTY。 若要取得任何專案的類型, (包括不是檔案) 的專案,請使用 System.ItemType

路徑和副檔名屬性範例。

路徑 副檔名
c:\files\personal\hello.txt .txt
\\server\share\mydir\news.doc .doc
\\server\share\numbers.xls .xls
\\server\share\folder VT_EMPTY
c:\Stuff\MyFolder VT_EMPTY
[desktop] VT_EMPTY

 

propertyDescription

searchInfo

labelInfo

typeInfo

displayInfo

stringFormat

booleanFormat

numberFormat

dateTimeFormat

enumeratedList

drawControl

editControl

filterControl

queryControl