次の方法で共有


FilePropertiesFilterExtensions.PropertiesByRuleName Method

Definition

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.

Applies to