New to Telerik UI for WPFStart a free 30-day trial

Base abstract class for file searching in windows file system.

Definition

Namespace:Telerik.Windows.Controls.FileSearch

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public abstract class FileSearchProviderBase : IFileSearchProvider, IDisposable

Inheritance: objectFileSearchProviderBase

Derived Classes: FileSearchProvider

Implements: IDisposableIFileSearchProvider

Constructors

Initializes a new instance of the FileSearchProviderBase class.

C#
protected FileSearchProviderBase()

Initializes a new instance of the FileSearchProviderBase class.

C#
protected FileSearchProviderBase(SearchSettings settings)
Parameters:settingsSearchSettings

Properties

Gets or sets the search settings for this FileSearchProvider instance.

C#
public SearchSettings SearchSettings { get; set; }

Implements: IFileSearchProvider.SearchSettings

Methods

Cancels the current search asynchronously. Should be invoked when search string is changed.

C#
public void CancelCurrentSearchAsync()

Implements: IFileSearchProvider.CancelCurrentSearchAsync()

C#
public void Dispose()

Implements: IDisposable.Dispose()

C#
protected virtual void Dispose(bool isDisposing)
Parameters:isDisposingbool

Gets the IPropertyValueProvider associated with the current OleDbDataReader when searching in indexed locations.

C#
protected abstract IPropertyValueProvider GetPropertyValueProvider(OleDbDataReader oleDbReader)
Parameters:oleDbReaderOleDbDataReaderReturns:

IPropertyValueProvider

Gets the IPropertyValueProvider associated with the current file result when searching in non-indexed locations.

C#
protected abstract IPropertyValueProvider GetPropertyValueProvider(string pathToFileOrDir)
Parameters:pathToFileOrDirstringReturns:

IPropertyValueProvider

Gets the 'SQL'-like search query when searching in indexed locations.

C#
protected abstract string GetSearchQuery(string pattern, string dirPath)
Parameters:patternstringdirPathstringReturns:

string

Searches for string pattern in the specified directory.

C#
public void SearchAsync(string pattern, string dirPath)
Parameters:patternstringdirPathstring

Implements: IFileSearchProvider.SearchAsync(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.

C#
public void SearchAsyncWithTimer(string pattern, string dirPath)
Parameters:patternstringdirPathstring

Implements: IFileSearchProvider.SearchAsyncWithTimer(string, string)

Stops the current search operation and releases the resources.

C#
public void StopSearch()

Implements: IFileSearchProvider.StopSearch()

Events

Fires when the current search operation is completed, whether cancelled or not.

C#
public event EventHandler<FileSearchCompletedEventArgs> FileSearchCompleted

Implements: IFileSearchProvider.FileSearchCompleted

Fires on every portion of files found. The size of the portion is determined by the ResultsChunkItemsCount property of the SearchSettings.

C#
public event EventHandler<FileSearchProgressChangedEventArgs> FileSearchProgressChanged

Implements: IFileSearchProvider.FileSearchProgressChanged