C# Класс Nexus.Client.Games.FileSearcher

This task searched the user's computer for the specified installation path.
The task is given specific file names for which to search that indicate the installation path being sought.
Наследование: ThreadedBackgroundTask
Показать файл Открыть проект

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

Метод Описание
FileSearcher ( ) : System

A simple constructor that initializes the object with the given values.

Find ( string p_strSearchFiles ) : void

Finds all files matching the given patterns.

Защищенные методы

Метод Описание
DoWork ( object p_objArgs ) : object

The delegate that is called to start the backgound task.

OnFileFound ( EventArgs e ) : void

Raises the FileFound event.

OnFileFound ( string p_strFoundPath ) : void

Raises the FileFound event.

Search ( string p_strPath, Regex p_rgxPatterns ) : void

This recursively searches the specified directory for the search files.

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

DoWork() защищенный Метод

The delegate that is called to start the backgound task.
protected DoWork ( object p_objArgs ) : object
p_objArgs object the file patterns to search for.
Результат object

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

A simple constructor that initializes the object with the given values.
public FileSearcher ( ) : System
Результат System

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

Finds all files matching the given patterns.
public Find ( string p_strSearchFiles ) : void
p_strSearchFiles string The file patterns to search for.
Результат void

OnFileFound() защищенный Метод

Raises the FileFound event.
protected OnFileFound ( EventArgs e ) : void
e EventArgs An describing the task that was started.
Результат void

OnFileFound() защищенный Метод

Raises the FileFound event.
protected OnFileFound ( string p_strFoundPath ) : void
p_strFoundPath string The path of the file that was found.
Результат void

Search() защищенный Метод

This recursively searches the specified directory for the search files.
protected Search ( string p_strPath, Regex p_rgxPatterns ) : void
p_strPath string The path of the direcotry to recursively search.
p_rgxPatterns Regex The file patterns to search for.
Результат void