public class SearchEngine : IDisposable
public ref class SearchEngine : IDisposable
You can also use SearchEngine to search through a given string using the SearchText(SearchCriteria, String) method.
SearchFileSystemCriteria criteria = new SearchFileSystemCriteria();
criteria.FileNameExprType = ExpressionType.DosExp;
criteria.FileName = "*.txt";
criteria.ContainingText = "SearchFor";
criteria.LookIn = "C:\\";
criteria.ApplyChanges();
engine.Start(criteria, false);
SearchEngine | Initializes a new instance of the SearchEngine class |
SearchResultItems | The list of found SearchResultItem objects for the current search. |
Dispose | Releases all resources used by the SearchEngine |
Dispose(Boolean) | Releases the unmanaged resources used by the SearchEngine and optionally releases the managed resources |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
Finalize |
Non-GC class clean up
(Overrides ObjectFinalize) |
GetHashCode | Serves as the default hash function. (Inherited from Object) |
GetType | Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
SearchText | Search a string for the given criteria. |
Start | Starts a new search |
Stop | Stops a currently running search. |
ToString | Returns a string that represents the current object. (Inherited from Object) |
Unlock | Provide registration information to the search engine. Used when regkey.xml file not available. |
OnFileFound | Occurs when one or more files are found. If multiple files are found within a short interval they are grouped into a single OnFileFound message. |
OnProgress | Occurs during the search providing progress information. |
OnSearchFinished | Occurs when the search has finished. |
OnSearchStarted | Occurs when the search starts. |