다음을 통해 공유


PathFilter Delegate

Definition

Determines whether the given full path is eligible to be considered as part of the result of the file enumeration service.

public delegate bool PathFilter(System::String ^ fullPath, bool isDirectory);
public delegate bool PathFilter(string fullPath, bool isDirectory = false);
type PathFilter = delegate of string * bool -> bool
Public Delegate Function PathFilter(fullPath As String, Optional isDirectory As Boolean = false) As Boolean 

Parameters

fullPath
String

Defines the full path to the file or folder.

isDirectory
Boolean

(optional) Defines whether the current item is a directory or a file.

Return Value

Returns True if the entry is eligible.

Applies to