FilePropertiesFilterExtensions.PropertiesByRuleName Method

Definition

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

C#
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);

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.

Applies to

Produit Versions
Visual Studio SDK 2022