FilterFileType Object

On this page:

Description

Instances of this object correspond to individual entries on the File Types options page. These instances are stored by the FilterFileTypes Object. Each instance determines the type of comparison and optional filter program to be used to compare files with names matching a specified pattern.

Properties

Enabled read/write, IFilterFileType

Whether or not this file type is enabled.

IDL [propget] HRESULT Enabled([out, retval] VARIANT_BOOL* pValue)
[propput] HRESULT Enabled([in] VARIANT_BOOL newValue)
.NET Boolean Enabled[get, set]

FilterProgram read/write, IFilterFileType

The path or CLSID of a filter program that should be used to filter files. See Edit File Type for further details.

IDL [propget] HRESULT FilterProgram([out, retval] BSTR* pValue)
[propput] HRESULT FilterProgram([in] BSTR newValue)
.NET String FilterProgram[get, set]

Pattern read/write, IFilterFileType

A list of one or more semicolon-separated patterns that match the names of files that should be compared using the comparison type specified by this object’s Type property. For example, you could use *.bmp;*.gif;*.jpg;*.png to match image files.

IDL [propget] HRESULT Pattern([out, retval] BSTR* pValue)
[propput] HRESULT Pattern([in] BSTR newValue)
.NET String Pattern[get, set]

Type read/write, IFilterFileType

The type of comparison to be used for files matching this object’s Pattern.

IDL [propget] HRESULT Type([out, retval] FilterComparisonType* pValue)
[propput] HRESULT Type([in] FilterComparisonType newValue)
.NET FilterComparisonType Type[get, set]