recls C# mapping

FileSearch.Process Method (String, String, RECLS_FLAG, ProcessEntry)

Processes the matching entries by passing each one to the given delegate function

[Visual Basic]
Overloads Public Shared Function Process( _
   ByVal searchRoot As String, _
   ByVal pattern As String, _
   ByVal flags As RECLS_FLAG, _
   ByVal fn As ProcessEntry _
) As Boolean
[C#]
public static bool Process(
   string searchRoot,
   string pattern,
   RECLS_FLAG flags,
   ProcessEntry fn
);

Parameters

searchRoot
The root directory of the search, e.g. "h:\recls". If it is null, or the empty string, the current directory of the calling process is used
pattern
The search pattern, e.g. "*.*. If it is null, or the empty string, all files are searched.
flags
Members of the RECLS_FLAG enumeration, to alter the search. For example, RECLS_F_DIRECTORIES causes directories to be retrieved; RECLS_F_RECURSIVE causes the search to recurse all subdirectories of searchRoot
fn
The delegate, of type FileSearch.ProcessEntryProcessEntry, that will receive each matching item

Return Value

Returns true if the set of matching entries was processed to completion, or false if it was cancelled

Remarks

This static method conducts a search matching the given parameters, and calls the given delegate function for each matching item. The search is cancellable by means of return false from the delegate

See Also

FileSearch Class | recls Namespace | FileSearch.Process Overload List