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: 7.2
Syntax
public virtual bool FileMatches(
	SearchOptions p_SearchOptions,
	string filename
)

Parameters

p_SearchOptions  SearchOptions
The SearchOptions that where specified for the search run.
filename  String
Absolute filename of the item the search process is currently handling

Return Value

Boolean
true if the file matches the search criterion

Implements

IFileMatcherFileMatches(SearchOptions, String)
Example
C#
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