แก้ไข

แชร์ผ่าน


DirectoryInfo.GetDirectories Method

Definition

Overloads

GetDirectories()
GetDirectories(String)
GetDirectories(String, EnumerationOptions)
GetDirectories(String, SearchOption)

GetDirectories()

public:
 cli::array <Microsoft::IO::DirectoryInfo ^> ^ GetDirectories();
public Microsoft.IO.DirectoryInfo[] GetDirectories ();
member this.GetDirectories : unit -> Microsoft.IO.DirectoryInfo[]
Public Function GetDirectories () As DirectoryInfo()

Returns

Applies to

GetDirectories(String)

public:
 cli::array <Microsoft::IO::DirectoryInfo ^> ^ GetDirectories(System::String ^ searchPattern);
public Microsoft.IO.DirectoryInfo[] GetDirectories (string searchPattern);
member this.GetDirectories : string -> Microsoft.IO.DirectoryInfo[]
Public Function GetDirectories (searchPattern As String) As DirectoryInfo()

Parameters

searchPattern
String

Returns

Applies to

GetDirectories(String, EnumerationOptions)

public:
 cli::array <Microsoft::IO::DirectoryInfo ^> ^ GetDirectories(System::String ^ searchPattern, Microsoft::IO::EnumerationOptions ^ enumerationOptions);
public Microsoft.IO.DirectoryInfo[] GetDirectories (string searchPattern, Microsoft.IO.EnumerationOptions enumerationOptions);
member this.GetDirectories : string * Microsoft.IO.EnumerationOptions -> Microsoft.IO.DirectoryInfo[]
Public Function GetDirectories (searchPattern As String, enumerationOptions As EnumerationOptions) As DirectoryInfo()

Parameters

searchPattern
String
enumerationOptions
EnumerationOptions

Returns

Applies to

GetDirectories(String, SearchOption)

public:
 cli::array <Microsoft::IO::DirectoryInfo ^> ^ GetDirectories(System::String ^ searchPattern, Microsoft::IO::SearchOption searchOption);
public Microsoft.IO.DirectoryInfo[] GetDirectories (string searchPattern, Microsoft.IO.SearchOption searchOption);
member this.GetDirectories : string * Microsoft.IO.SearchOption -> Microsoft.IO.DirectoryInfo[]
Public Function GetDirectories (searchPattern As String, searchOption As SearchOption) As DirectoryInfo()

Parameters

searchPattern
String
searchOption
SearchOption

Returns

Applies to