Directory.GetDirectories 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
GetDirectories(String, String, EnumerationOptions) | |
GetDirectories(String, String, SearchOption) | |
GetDirectories(String) | |
GetDirectories(String, String) |
GetDirectories(String, String, EnumerationOptions)
public:
static cli::array <System::String ^> ^ GetDirectories(System::String ^ path, System::String ^ searchPattern, Microsoft::IO::EnumerationOptions ^ enumerationOptions);
public static string[] GetDirectories (string path, string searchPattern, Microsoft.IO.EnumerationOptions enumerationOptions);
static member GetDirectories : string * string * Microsoft.IO.EnumerationOptions -> string[]
Public Shared Function GetDirectories (path As String, searchPattern As String, enumerationOptions As EnumerationOptions) As String()
Parameters
- path
- String
- searchPattern
- String
- enumerationOptions
- EnumerationOptions
Returns
String[]
Applies to
GetDirectories(String, String, SearchOption)
public:
static cli::array <System::String ^> ^ GetDirectories(System::String ^ path, System::String ^ searchPattern, Microsoft::IO::SearchOption searchOption);
public static string[] GetDirectories (string path, string searchPattern, Microsoft.IO.SearchOption searchOption);
static member GetDirectories : string * string * Microsoft.IO.SearchOption -> string[]
Public Shared Function GetDirectories (path As String, searchPattern As String, searchOption As SearchOption) As String()
Parameters
- path
- String
- searchPattern
- String
- searchOption
- SearchOption
Returns
String[]
Applies to
GetDirectories(String)
public:
static cli::array <System::String ^> ^ GetDirectories(System::String ^ path);
public static string[] GetDirectories (string path);
static member GetDirectories : string -> string[]
Public Shared Function GetDirectories (path As String) As String()
Parameters
- path
- String
Returns
String[]
Applies to
GetDirectories(String, String)
public:
static cli::array <System::String ^> ^ GetDirectories(System::String ^ path, System::String ^ searchPattern);
public static string[] GetDirectories (string path, string searchPattern);
static member GetDirectories : string * string -> string[]
Public Shared Function GetDirectories (path As String, searchPattern As String) As String()
Parameters
- path
- String
- searchPattern
- String
Returns
String[]
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.