FileSystemEnumerable<TResult>(String, FileSystemEnumerable<TResult>.FindTransform, EnumerationOptions) Constructor

Definition

Initializes a new instance of the FileSystemEnumerable<TResult> class with specific search and filtering options.

public FileSystemEnumerable (string directory, System.IO.Enumeration.FileSystemEnumerable<TResult>.FindTransform transform, System.IO.EnumerationOptions options = null);
new System.IO.Enumeration.FileSystemEnumerable<'Result> : string * System.IO.Enumeration.FileSystemEnumerable<'Result>.FindTransform * System.IO.EnumerationOptions -> System.IO.Enumeration.FileSystemEnumerable<'Result>
Public Sub New (directory As String, transform As FileSystemEnumerable(Of TResult).FindTransform, Optional options As EnumerationOptions = null)

Parameters

directory
String

The path of the directory where the enumeration will be performed.

transform
FileSystemEnumerable<TResult>.FindTransform

A delegate method for transforming raw find data into a result.

options
EnumerationOptions

An object describing the enumeration options.

Exceptions

directory or transform is null.

The directory path is empty.

-or-

directory contains a null character "\0".

Applies to