Directory.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) | |
GetFiles(String, String) | |
GetFiles(String, String, EnumerationOptions) | |
GetFiles(String, String, SearchOption) |
GetFiles(String)
GetFiles(String, String)
public:
static cli::array <System::String ^> ^ GetFiles(System::String ^ path, System::String ^ searchPattern);
public static string[] GetFiles (string path, string searchPattern);
static member GetFiles : string * string -> string[]
Public Shared Function GetFiles (path As String, searchPattern As String) As String()
Parameters
- path
- String
- searchPattern
- String
Returns
String[]
Applies to
GetFiles(String, String, EnumerationOptions)
public:
static cli::array <System::String ^> ^ GetFiles(System::String ^ path, System::String ^ searchPattern, Microsoft::IO::EnumerationOptions ^ enumerationOptions);
public static string[] GetFiles (string path, string searchPattern, Microsoft.IO.EnumerationOptions enumerationOptions);
static member GetFiles : string * string * Microsoft.IO.EnumerationOptions -> string[]
Public Shared Function GetFiles (path As String, searchPattern As String, enumerationOptions As EnumerationOptions) As String()
Parameters
- path
- String
- searchPattern
- String
- enumerationOptions
- EnumerationOptions
Returns
String[]
Applies to
GetFiles(String, String, SearchOption)
public:
static cli::array <System::String ^> ^ GetFiles(System::String ^ path, System::String ^ searchPattern, Microsoft::IO::SearchOption searchOption);
public static string[] GetFiles (string path, string searchPattern, Microsoft.IO.SearchOption searchOption);
static member GetFiles : string * string * Microsoft.IO.SearchOption -> string[]
Public Shared Function GetFiles (path As String, searchPattern As String, searchOption As SearchOption) As String()
Parameters
- path
- String
- searchPattern
- String
- searchOption
- SearchOption
Returns
String[]
Applies to
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.