Directory.EnumerateFiles Method

Returns an enumerable collection of file names that meet specified criteria.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Static member EnumerateFiles(String) Returns an enumerable collection of file names in a specified path.
Public method Static member EnumerateFiles(String, String) Returns an enumerable collection of file names that match a search pattern in a specified path.
Public method Static member EnumerateFiles(String, String, SearchOption) Returns an enumerable collection of file names that match a search pattern in a specified path, and optionally searches subdirectories.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft