Returns the names of the files in the specified directory that fit
the selection criteria specified in the FileSelector, optionally
recursing through subdirectories.
| C# | Visual Basic | Visual C++ |
public ReadOnlyCollection<string> SelectFiles( string directory, bool recurseDirectories )
Public Function SelectFiles ( _ directory As String, _ recurseDirectories As Boolean _ ) As ReadOnlyCollection(Of String)
public: ReadOnlyCollection<String^>^ SelectFiles( String^ directory, bool recurseDirectories )
An collection of strings containing fully-qualified pathnames of files
that match the criteria specified in the FileSelector instance.
This method applies the file selection criteria contained in the
FileSelector to the files contained in the given directory, and returns
the names of files that conform to the criteria.