Muokkaa

Jaa


DirectoryInfo.EnumerateFiles Method

Definition

Overloads

EnumerateFiles()
EnumerateFiles(String)
EnumerateFiles(String, EnumerationOptions)
EnumerateFiles(String, SearchOption)

EnumerateFiles()

public:
 System::Collections::Generic::IEnumerable<Microsoft::IO::FileInfo ^> ^ EnumerateFiles();
public System.Collections.Generic.IEnumerable<Microsoft.IO.FileInfo> EnumerateFiles ();
member this.EnumerateFiles : unit -> seq<Microsoft.IO.FileInfo>
Public Function EnumerateFiles () As IEnumerable(Of FileInfo)

Returns

Applies to

EnumerateFiles(String)

public:
 System::Collections::Generic::IEnumerable<Microsoft::IO::FileInfo ^> ^ EnumerateFiles(System::String ^ searchPattern);
public System.Collections.Generic.IEnumerable<Microsoft.IO.FileInfo> EnumerateFiles (string searchPattern);
member this.EnumerateFiles : string -> seq<Microsoft.IO.FileInfo>
Public Function EnumerateFiles (searchPattern As String) As IEnumerable(Of FileInfo)

Parameters

searchPattern
String

Returns

Applies to

EnumerateFiles(String, EnumerationOptions)

public:
 System::Collections::Generic::IEnumerable<Microsoft::IO::FileInfo ^> ^ EnumerateFiles(System::String ^ searchPattern, Microsoft::IO::EnumerationOptions ^ enumerationOptions);
public System.Collections.Generic.IEnumerable<Microsoft.IO.FileInfo> EnumerateFiles (string searchPattern, Microsoft.IO.EnumerationOptions enumerationOptions);
member this.EnumerateFiles : string * Microsoft.IO.EnumerationOptions -> seq<Microsoft.IO.FileInfo>
Public Function EnumerateFiles (searchPattern As String, enumerationOptions As EnumerationOptions) As IEnumerable(Of FileInfo)

Parameters

searchPattern
String
enumerationOptions
EnumerationOptions

Returns

Applies to

EnumerateFiles(String, SearchOption)

public:
 System::Collections::Generic::IEnumerable<Microsoft::IO::FileInfo ^> ^ EnumerateFiles(System::String ^ searchPattern, Microsoft::IO::SearchOption searchOption);
public System.Collections.Generic.IEnumerable<Microsoft.IO.FileInfo> EnumerateFiles (string searchPattern, Microsoft.IO.SearchOption searchOption);
member this.EnumerateFiles : string * Microsoft.IO.SearchOption -> seq<Microsoft.IO.FileInfo>
Public Function EnumerateFiles (searchPattern As String, searchOption As SearchOption) As IEnumerable(Of FileInfo)

Parameters

searchPattern
String
searchOption
SearchOption

Returns

Applies to