FileListSearch(String, Boolean, Boolean) Method |
Searches the paths given in the parameter for patterns defined in the
SearchOptions property.
Namespace: Jam.ShellAssembly: ShellBrowser (in ShellBrowser.dll) Version: 7.2
Syntaxpublic void Search(
string[] pPaths,
bool pEstimate,
bool pThrowExceptionOnInvalidPath
)
Public Sub Search (
pPaths As String(),
pEstimate As Boolean,
pThrowExceptionOnInvalidPath As Boolean
)
public:
void Search(
array<String^>^ pPaths,
bool pEstimate,
bool pThrowExceptionOnInvalidPath
)
member Search :
pPaths : string[] *
pEstimate : bool *
pThrowExceptionOnInvalidPath : bool -> unit Parameters
- pPaths String
- Array of paths in which to search for the pattern.
- pEstimate Boolean
- if true, the searcher tries to estimate percentage of search progress and sets a value in SearchProgressChangedEventArgs.
- pThrowExceptionOnInvalidPath Boolean
- if set to true an exception is thrown if a path does not exist this often occurs with removable devices
Exceptions| Exception | Condition |
|---|
| ArgumentException | If any of the provided paths is not valid, or not existing. |
RemarksThe 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