DirectoryInfo.GetFiles Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetFiles(String, EnumerationOptions) | |
GetFiles() | |
GetFiles(String) | |
GetFiles(String, SearchOption) |
GetFiles(String, EnumerationOptions)
public:
cli::array <Microsoft::IO::FileInfo ^> ^ GetFiles(System::String ^ searchPattern, Microsoft::IO::EnumerationOptions ^ enumerationOptions);
public Microsoft.IO.FileInfo[] GetFiles (string searchPattern, Microsoft.IO.EnumerationOptions enumerationOptions);
member this.GetFiles : string * Microsoft.IO.EnumerationOptions -> Microsoft.IO.FileInfo[]
Public Function GetFiles (searchPattern As String, enumerationOptions As EnumerationOptions) As FileInfo()
Parameters
- searchPattern
- String
- enumerationOptions
- EnumerationOptions
Returns
FileInfo[]
Applies to
GetFiles()
public:
cli::array <Microsoft::IO::FileInfo ^> ^ GetFiles();
public Microsoft.IO.FileInfo[] GetFiles ();
member this.GetFiles : unit -> Microsoft.IO.FileInfo[]
Public Function GetFiles () As FileInfo()
Returns
FileInfo[]
Applies to
GetFiles(String)
public:
cli::array <Microsoft::IO::FileInfo ^> ^ GetFiles(System::String ^ searchPattern);
public Microsoft.IO.FileInfo[] GetFiles (string searchPattern);
member this.GetFiles : string -> Microsoft.IO.FileInfo[]
Public Function GetFiles (searchPattern As String) As FileInfo()
Parameters
- searchPattern
- String
Returns
FileInfo[]
Applies to
GetFiles(String, SearchOption)
public:
cli::array <Microsoft::IO::FileInfo ^> ^ GetFiles(System::String ^ searchPattern, Microsoft::IO::SearchOption searchOption);
public Microsoft.IO.FileInfo[] GetFiles (string searchPattern, Microsoft.IO.SearchOption searchOption);
member this.GetFiles : string * Microsoft.IO.SearchOption -> Microsoft.IO.FileInfo[]
Public Function GetFiles (searchPattern As String, searchOption As SearchOption) As FileInfo()
Parameters
- searchPattern
- String
- searchOption
- SearchOption
Returns
FileInfo[]