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
파일 보기 프로젝트 열기: NexusMods/NexusModManager-4.5

공개 메소드들

메소드 설명
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