Share via


FilePropertiesFilterExtensions.PropertiesByRuleName Method

Definition

Gets source file properties for a rule with a set of known names.

[System.Diagnostics.CodeAnalysis.Experimental("VSEXTPREVIEW_PROJECTQUERY_PROPERTIES_VCPROJECTS")]
public static Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<Microsoft.VisualStudio.ProjectSystem.Query.IPropertySnapshot> PropertiesByRuleName(this Microsoft.VisualStudio.ProjectSystem.Query.IFileSnapshot file, string ruleName, params string[] propertyNames);
[<System.Diagnostics.CodeAnalysis.Experimental("VSEXTPREVIEW_PROJECTQUERY_PROPERTIES_VCPROJECTS")>]
static member PropertiesByRuleName : Microsoft.VisualStudio.ProjectSystem.Query.IFileSnapshot * string * string[] -> Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<Microsoft.VisualStudio.ProjectSystem.Query.IPropertySnapshot>
<Extension()>
Public Function PropertiesByRuleName (file As IFileSnapshot, ruleName As String, ParamArray propertyNames As String()) As IAsyncQueryable(Of IPropertySnapshot)

Parameters

file
IFileSnapshot

A source file

ruleName
String

the rule to fetch properties from.

propertyNames
String[]

One or more names of properties. All properties are returned if names are not specified.

Returns

A project query with additional properties.

Attributes

Applies to