Muokkaa

Jaa


DirectoryInfo.EnumerateDirectories Method

Definition

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