FilePropertiesFilterExtensions.PropertiesByRuleName Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets source file properties for a rule with a set of known names.
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);
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.