C# Класс SecureDelete.FileSearch.FileSearcher

Provides support for searching files in directories and their subdirectories. Search can be performed asynchronously.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
FileSearcher ( ) : System
SearchFiles ( string folder, string pattern, bool regexPattern, bool includeSubfolders ) : string[]

Search files

SearchFilesAsync ( string folder, string pattern, bool regexPattern, bool includeSubfolders ) : void

Search files asynchronously

Stop ( ) : void

Приватные методы

Метод Описание
GetStop ( ) : bool
InitializeRegex ( string pattern, bool compiled ) : void
MaximumWaitTimeExceeded ( ) : bool
ProcessFiles ( string files ) : string[]
ResetSearcher ( ) : void
SearchAsync ( object param ) : void
SearchFilesImpl ( string folder, string pattern, bool includeSubfolders, bool async ) : string[]
SendFiles ( string files, bool forced ) : void
SendLastSet ( ) : void
SendResultChunk ( string files, bool lastSet ) : void
SetStop ( bool value ) : void

Описание методов

FileSearcher() публичный Метод

public FileSearcher ( ) : System
Результат System

SearchFiles() публичный Метод

Search files
public SearchFiles ( string folder, string pattern, bool regexPattern, bool includeSubfolders ) : string[]
folder string The folder where to begin searching.
pattern string The pattern the files need to match (ex. *.txt).
regexPattern bool
includeSubfolders bool Specifies whether or not to search the subfolders.
Результат string[]

SearchFilesAsync() публичный Метод

Search files asynchronously
public SearchFilesAsync ( string folder, string pattern, bool regexPattern, bool includeSubfolders ) : void
folder string The folder where to begin searching.
pattern string The pattern the files need to match (ex. *.txt).
regexPattern bool
includeSubfolders bool Specifies whether or not to search the subfolders.
Результат void

Stop() публичный Метод

public Stop ( ) : void
Результат void