DirectoryInfo.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() | |
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
ทํางานร่วมกับเราใน GitHub
แหล่งที่มาสำหรับเนื้อหานี้สามารถพบได้บน GitHub ซึ่งคุณยังสามารถสร้างและตรวจสอบปัญหาและคำขอดึงข้อมูลได้ สำหรับข้อมูลเพิ่มเติม ให้ดูคู่มือผู้สนับสนุนของเรา