EnumerateFileSystemEntries Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Returns an enumerable collection of file-system entries in a specified path.
Namespace: System.IO
Assembly: System.IO (in System.IO.dll)
Syntax
'Declaration
Public Shared Function EnumerateFileSystemEntries ( _
path As String _
) As IEnumerable
public static IEnumerable EnumerateFileSystemEntries(
string path
)
public:
static IEnumerable^ EnumerateFileSystemEntries(
String^ path
)
static member EnumerateFileSystemEntries :
path:string -> IEnumerable
public static function EnumerateFileSystemEntries(
path : String
) : IEnumerable
Parameters
- path
Type: System. . :: . .String
The directory to search.
Return Value
Type: System.Collections. . :: . .IEnumerable
An enumerable collection of file-system entries in the directory specified by path.
Remarks
You can specify relative path information with the path parameter. Relative path information is interpreted as relative to the current working directory, which you can determine by using the GetCurrentDirectory method.
The returned collection is not cached; each call to the GetEnumerator on the collection will start a new enumeration.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.