Click or drag to resize

FileListSearch Method (String, Boolean, Boolean)

Searches the paths given in the parameter for patterns defined in the SearchOptions property.

Namespace:  Jam.Shell
Assembly:  ShellBrowser.Winforms (in ShellBrowser.Winforms.dll) Version: 6.3.1
Syntax
public void Search(
	string[] pPaths,
	bool pEstimate,
	bool pThrowExceptionOnInvalidPath
)

Parameters

pPaths
Type: SystemString
Array of paths in which to search for the pattern.
pEstimate
Type: SystemBoolean
if true, the searcher tries to estimate percentage of search progress and sets a value in SearchProgressChangedEventArgs.
pThrowExceptionOnInvalidPath
Type: SystemBoolean
if set to true an exception is thrown if a path does not exist this often occurs with removable devices
Exceptions
ExceptionCondition
ArgumentExceptionIf any of the provided paths is not valid, or not existing.
Remarks
The search itself is done in a background worker thread. With event SearchFileMatches you can further customize the search result. Information on Progress is passed via event SearchProgressChanged.

 

Exceptions that occur during the search are by default suppressed, but you can influence this with event SearchExceptionOccurred.
See Also