FileListFileMatches Method |
Override this method to implement/extend your own FileMatching mechanism.
Namespace:
Jam.Shell
Assembly:
ShellBrowser (in ShellBrowser.dll) Version: 7.1
Syntax public virtual bool FileMatches(
SearchOptions p_SearchOptions,
string filename
)
Public Overridable Function FileMatches (
p_SearchOptions As SearchOptions,
filename As String
) As Boolean
public:
virtual bool FileMatches(
SearchOptions^ p_SearchOptions,
String^ filename
)
abstract FileMatches :
p_SearchOptions : SearchOptions *
filename : string -> bool
override FileMatches :
p_SearchOptions : SearchOptions *
filename : string -> bool
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:
Booleantrue 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;
}
return true;
}
}
See Also