Partager via


ProjectPropertiesFilterExtensions.FilesUnderDirectory Method

Definition

Gets source files physically present under the given directory.

public static Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<Microsoft.VisualStudio.ProjectSystem.Query.IFileSnapshot> FilesUnderDirectory (this Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot project, string relativeOrPhysicalDirectoryPath, bool recursive);
static member FilesUnderDirectory : Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot * string * bool -> Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<Microsoft.VisualStudio.ProjectSystem.Query.IFileSnapshot>
<Extension()>
Public Function FilesUnderDirectory (project As IProjectSnapshot, relativeOrPhysicalDirectoryPath As String, recursive As Boolean) As IAsyncQueryable(Of IFileSnapshot)

Parameters

project
IProjectSnapshot

The project.

relativeOrPhysicalDirectoryPath
String

Project relative or physical path of the directory to retrieve the source files from.

recursive
Boolean

Indicates if the retrieval is recursive or not.

Returns

A new query with Files conditions applied.

Applies to