DirectoryInfo.EnumerateDirectories 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
EnumerateDirectories() | |
EnumerateDirectories(String) | |
EnumerateDirectories(String, EnumerationOptions) | |
EnumerateDirectories(String, SearchOption) |
EnumerateDirectories()
public:
System::Collections::Generic::IEnumerable<Microsoft::IO::DirectoryInfo ^> ^ EnumerateDirectories();
public System.Collections.Generic.IEnumerable<Microsoft.IO.DirectoryInfo> EnumerateDirectories ();
member this.EnumerateDirectories : unit -> seq<Microsoft.IO.DirectoryInfo>
Public Function EnumerateDirectories () As IEnumerable(Of DirectoryInfo)
Returns
Applies to
EnumerateDirectories(String)
public:
System::Collections::Generic::IEnumerable<Microsoft::IO::DirectoryInfo ^> ^ EnumerateDirectories(System::String ^ searchPattern);
public System.Collections.Generic.IEnumerable<Microsoft.IO.DirectoryInfo> EnumerateDirectories (string searchPattern);
member this.EnumerateDirectories : string -> seq<Microsoft.IO.DirectoryInfo>
Public Function EnumerateDirectories (searchPattern As String) As IEnumerable(Of DirectoryInfo)
Parameters
- searchPattern
- String
Returns
Applies to
EnumerateDirectories(String, EnumerationOptions)
public:
System::Collections::Generic::IEnumerable<Microsoft::IO::DirectoryInfo ^> ^ EnumerateDirectories(System::String ^ searchPattern, Microsoft::IO::EnumerationOptions ^ enumerationOptions);
public System.Collections.Generic.IEnumerable<Microsoft.IO.DirectoryInfo> EnumerateDirectories (string searchPattern, Microsoft.IO.EnumerationOptions enumerationOptions);
member this.EnumerateDirectories : string * Microsoft.IO.EnumerationOptions -> seq<Microsoft.IO.DirectoryInfo>
Public Function EnumerateDirectories (searchPattern As String, enumerationOptions As EnumerationOptions) As IEnumerable(Of DirectoryInfo)
Parameters
- searchPattern
- String
- enumerationOptions
- EnumerationOptions
Returns
Applies to
EnumerateDirectories(String, SearchOption)
public:
System::Collections::Generic::IEnumerable<Microsoft::IO::DirectoryInfo ^> ^ EnumerateDirectories(System::String ^ searchPattern, Microsoft::IO::SearchOption searchOption);
public System.Collections.Generic.IEnumerable<Microsoft.IO.DirectoryInfo> EnumerateDirectories (string searchPattern, Microsoft.IO.SearchOption searchOption);
member this.EnumerateDirectories : string * Microsoft.IO.SearchOption -> seq<Microsoft.IO.DirectoryInfo>
Public Function EnumerateDirectories (searchPattern As String, searchOption As SearchOption) As IEnumerable(Of DirectoryInfo)
Parameters
- searchPattern
- String
- searchOption
- SearchOption
Returns
Applies to
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.