Upgrade your Internet Experience
United States - English
Argentina (Español)
Australia (English)
Brasil (Português)
Canada (English)
Canada (Français)
中国 (简体中文)
Colombia (Español)
Deutschland (Deutsch)
España (Español)
France (Français)
India (English)
Italia (Italiano)
日本 (日本語)
México (Español)
Perú (Español)
Россия (Pусский)
United Kingdom (English)
United States (English)
More...
Microsoft.com
Welcome
Sign in
.NET Framework Developer Center
Home
Library
Learn
Downloads
Support
Community
Forums
Classic
  |  
Lightweight Beta
  |  
ScriptFree
Printer Friendly Version
Send
Add Content...
Click to Rate and Give Feedback
Give feedback on this content
MSDN Library
MSDN
Please Wait
MSDN Library
Please Wait
.NET Development
Please Wait
.NET Framework 2.0
Please Wait
Class Library Reference
Please Wait
System.IO
Please Wait
Directory Class
Please Wait
Directory Methods
Please Wait
GetFiles Method
Please Wait
Collapse All
Expand All
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0
Other versions are also available for the following:
Microsoft Visual Studio 2003/.NET Framework 1.1
.NET Framework 3.0
Microsoft Visual Studio 2008/.NET Framework 3.5
Microsoft Silverlight 3
Microsoft Visual Studio 2010/.NET Framework 4
Want more? Here are some additional resources on this topic:
Directory Methods (System.IO)
.NET Framework Class Library
Directory.GetFiles Method
Returns the names of files in a specified directory.
Overload List
Name
Description
Directory.GetFiles (String)
Returns the names of files in the specified directory.
Supported by the .NET Compact Framework.
Directory.GetFiles (String, String)
Returns the names of files in the specified directory that match the specified search pattern.
Supported by the .NET Compact Framework.
Directory.GetFiles (String, String, SearchOption)
Returns the names of files in the specified directory that match the specified search pattern, using a value to determine whether to search subdirectories.
See Also
Reference
Directory Class
Directory Members
System.IO Namespace
Other Resources
File and Stream I/O
How to: Read Text from a File
How to: Write Text to a File
Tags
:
Add a tag
Add
Cancel
Flag as
ContentBug
Community Content
Add new content
Annotations
|
Edit
Tags
:
Add a tag
Add
Cancel
Flag as
ContentBug
© 2010 Microsoft Corporation. All rights reserved.
Terms of Use
|
Trademarks
|
Privacy Statement