System.FileExtension

Identifies the file extension of the file-based item, including the leading period. This property is derived from System.FileName. If System.FileName either does not have a file extension or is VT_EMPTY, the value for this property should be VT_EMPTY.

To obtain the type of any item (including an item that is not a file), use System.ItemType.

propertyDescription
   name = System.FileExtension
   shellPKey = PKEY_FileExtension
   formatID = E4F10A3C-49E6-405D-8288-A23BD4EEAA6C
   propID = 100
   searchInfo
      inInvertedIndex = true
      isColumn = true
      isColumnSparse = true
      columnIndexType = OnDisk
      maxSize = 128
      mnemonics = fileextension|extension|ext|filext
   labelInfo
      label = File extension
      sortDescription
      invitationText = Specify file extension
      hideLabel = false
   typeInfo
      type = String
      groupingRange = Discrete
      isInnate = true
      canBePurged
      multipleValues = false
      isGroup = false
      aggregationType = Default
      isTreeProperty = false
      isViewable = false
      isQueryable = false
      includeInFullTextQuery = false
      conditionType = String
      defaultOperation = Equal
   aliasInfo
      sortByAlias = None
      additionalSortByAliases = None
   displayInfo
      defaultColumnWidth = 20
      displayType
      alignment = Left
      relativeDescriptionType = General
      defaultSortDirection = Ascending
      stringFormat
         formatAs = General
      booleanFormat
         formatAs = YesNo
      numberFormat
         formatAs = General
         formatDurationAs = hh:mm:ss
      dateTimeFormat
         formatAs = General
         formatTimeAs = ShortTime
         formatDateAs = ShortDate
      enumeratedList
         defaultText
         useValueForDefault = False
         enum
            value
            text
         enumRange
            minValue
            setValue
            text
      drawControl
         control = Default
      editControl
         control = Default
      filterControl
         control = Default
      queryControl
         control = Default

Remarks

PKEY values are defined in Propkey.h.

If System.FileName is VT_EMPTY, this property should also be empty. Otherwise, this property should be derived appropriately by the data source from System.FileName. If System.FileName does not include a file extension, System.FileExtension should be VT_EMPTY. To obtain the type of any item (including an item that is not a file), use System.ItemType.

Path and file extension property examples.

PathFile Extension
c:\files\personal\hello.txt.txt
\\server\share\mydir\news.doc.doc
\\server\share\numbers.xls.xls
\\server\share\folderVT_EMPTY
c:\Stuff\MyFolderVT_EMPTY
[desktop]VT_EMPTY

 

Related topics

propertyDescription
searchInfo
labelInfo
typeInfo
displayInfo
stringFormat
booleanFormat
numberFormat
dateTimeFormat
enumeratedList
drawControl
editControl
filterControl
queryControl

 

 

Show: