ClassFileSearchProviderBase
Base abstract class for file searching in windows file system.
Definition
Namespace:Telerik.Windows.Controls.FileSearch
Assembly:Telerik.Windows.Controls.dll
Syntax:
public abstract class FileSearchProviderBase : IFileSearchProvider, IDisposable
Inheritance: objectFileSearchProviderBase
Derived Classes:
Implements:
Constructors
FileSearchProviderBase()
Initializes a new instance of the FileSearchProviderBase class.
Declaration
protected FileSearchProviderBase()
FileSearchProviderBase(SearchSettings)
Initializes a new instance of the FileSearchProviderBase class.
Declaration
protected FileSearchProviderBase(SearchSettings settings)
Parameters
settings
Properties
SearchSettings
Gets or sets the search settings for this FileSearchProvider instance.
Declaration
public SearchSettings SearchSettings { get; set; }
Property Value
Implements
Methods
CancelCurrentSearchAsync()
Cancels the current search asynchronously. Should be invoked when search string is changed.
Declaration
public void CancelCurrentSearchAsync()
Implements
Dispose()
Declaration
public void Dispose()
Implements
Dispose(bool)
Declaration
protected virtual void Dispose(bool isDisposing)
Parameters
isDisposing
GetPropertyValueProvider(OleDbDataReader)
Gets the IPropertyValueProvider associated with the current OleDbDataReader when searching in indexed locations.
Declaration
protected abstract IPropertyValueProvider GetPropertyValueProvider(OleDbDataReader oleDbReader)
Parameters
oleDbReader
OleDbDataReader
Returns
GetPropertyValueProvider(string)
Gets the IPropertyValueProvider associated with the current file result when searching in non-indexed locations.
Declaration
protected abstract IPropertyValueProvider GetPropertyValueProvider(string pathToFileOrDir)
Parameters
pathToFileOrDir
Returns
GetSearchQuery(string, string)
Gets the 'SQL'-like search query when searching in indexed locations.
SearchAsync(string, string)
Searches for string pattern in the specified directory.
SearchAsyncWithTimer(string, string)
Performs async search with background timer which supports fast changing of the search parameters. Suitable when typing the search string in a TextBox.
StopSearch()
Stops the current search operation and releases the resources.
Declaration
public void StopSearch()
Implements
Events
FileSearchCompleted
Fires when the current search operation is completed, whether cancelled or not.
Declaration
public event EventHandler<FileSearchCompletedEventArgs> FileSearchCompleted
Event Value
Implements
FileSearchProgressChanged
Fires on every portion of files found. The size of the portion is determined by the ResultsChunkItemsCount property of the SearchSettings.
Declaration
public event EventHandler<FileSearchProgressChangedEventArgs> FileSearchProgressChanged
Event Value
Implements