Udostępnij za pośrednictwem


SolutionFolderPropertiesFilterExtensions.FilesByPath Method

Definition

Gets files with the given paths.

public static Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<Microsoft.VisualStudio.ProjectSystem.Query.IFileSnapshot> FilesByPath (this Microsoft.VisualStudio.ProjectSystem.Query.ISolutionFolderSnapshot solutionFolder, params string[] filePaths);
static member FilesByPath : Microsoft.VisualStudio.ProjectSystem.Query.ISolutionFolderSnapshot * string[] -> Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<Microsoft.VisualStudio.ProjectSystem.Query.IFileSnapshot>
<Extension()>
Public Function FilesByPath (solutionFolder As ISolutionFolderSnapshot, ParamArray filePaths As String()) As IAsyncQueryable(Of IFileSnapshot)

Parameters

solutionFolder
ISolutionFolderSnapshot

The project.

filePaths
String[]

One or more source files paths. Relative paths are supported for some project systems such as CPS and traditional projects. The fallback provider supports absolute paths only.

Returns

A new query with Files conditions applied.

Applies to