Class
FileSearchProvider

Provides a standalone API for searching files in the windows file system.

Definition

Constructors

FileSearchProvider()

Initializes a new instance of the FileSearchProvider class.

Declaration

cs-api-definition
public FileSearchProvider()

FileSearchProvider(SearchSettings)

Initializes a new instance of the FileSearchProvider class.

Declaration

cs-api-definition
public FileSearchProvider(SearchSettings settings)

Parameters

settings

SearchSettings

Methods

GetPropertyValueProvider(OleDbDataReader)

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

Declaration

cs-api-definition
protected override IPropertyValueProvider GetPropertyValueProvider(OleDbDataReader oleDbReader)

Parameters

oleDbReader

OleDbDataReader

Returns

IPropertyValueProvider

Overrides FileSearchProviderBase.GetPropertyValueProvider(OleDbDataReader)

GetPropertyValueProvider(string)

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

Declaration

cs-api-definition
protected override IPropertyValueProvider GetPropertyValueProvider(string pathToFileOrDir)

Parameters

pathToFileOrDir

string

Returns

IPropertyValueProvider

Overrides FileSearchProviderBase.GetPropertyValueProvider(string)

GetSearchQuery(string, string)

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

Declaration

cs-api-definition
protected override string GetSearchQuery(string pattern, string dirPath)

Parameters

pattern

string

dirPath

string

Returns

string

Overrides FileSearchProviderBase.GetSearchQuery(string, string)