Click or drag to resize

FileListFileMatches Method

Override this method to implement/extend your own FileMatching mechanism.

Namespace:  Jam.Shell
Assembly:  ShellBrowser (in ShellBrowser.dll) Version: 6.1
Syntax
public virtual bool FileMatches(
	SearchOptions p_SearchOptions,
	string filename
)

Parameters

p_SearchOptions
Type: Jam.ShellSearchOptions
The SearchOptions that where specified for the search run.
filename
Type: SystemString
Absolute filename of the item the search process is currently handling

Return Value

Type: Boolean
true if the file matches the search criterion

Implements

IFileMatcherFileMatches(SearchOptions, String)
Examples
class MyFileList : Jam.Shell.FileList 
{
    protected override bool FileMatches(SearchOptions p_SearchOptions, string filename)
    {
        if (!base.FileMatches(p_SearchOptions, filename)) 
        {
            return false;
        }
        //your matching logic here; i.e. open the file, search for pattern...
        return true;
    }
}
See Also