FileListSearch Method (String, Boolean, Boolean) |
Searches the paths given in the parameter for patterns defined in the
SearchOptions property.
Namespace:
Jam.Shell
Assembly:
ShellBrowser (in ShellBrowser.dll) Version: 7.1
Syntax public 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
- 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 Exception | Condition |
---|
ArgumentException | If 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