System.FileExtension

Mengidentifikasi ekstensi file item berbasis file, termasuk periode awal. Properti ini berasal dari System.FileName. Jika System.FileName tidak memiliki ekstensi file atau VT_EMPTY, nilai untuk properti ini harus VT_EMPTY.

Untuk mendapatkan tipe item apa pun (termasuk item yang bukan file), gunakan System.ItemType.

Windows 10, versi 1703, Windows 10, versi 1607, Windows 10, versi 1511, Windows 10, versi 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

Keterangan

Nilai PKEY ditentukan dalam Propkey.h.

Jika System.FileName VT_EMPTY, properti ini juga harus kosong. Jika tidak, properti ini harus diturunkan dengan tepat oleh sumber data dari System.FileName. Jika System.FileName tidak menyertakan ekstensi file, System.FileExtension harus VT_EMPTY. Untuk mendapatkan tipe item apa pun (termasuk item yang bukan file), gunakan System.ItemType.

Contoh properti ekstensi jalur dan file.

Jalur Ekstensi File URL
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

editKontrol

filterControl

queryControl