Share via


QueryBuilder.FilterByProperty Method

Definition

Modifies the query, so that it only returns objects with a given property value.

public:
 virtual void FilterByProperty(System::String ^ propertyName, System::Collections::IEnumerable ^ allowedPropertyValues, bool wildcardsEnabled, Microsoft::PowerShell::Cmdletization::BehaviorOnNoMatch behaviorOnNoMatch);
public virtual void FilterByProperty (string propertyName, System.Collections.IEnumerable allowedPropertyValues, bool wildcardsEnabled, Microsoft.PowerShell.Cmdletization.BehaviorOnNoMatch behaviorOnNoMatch);
abstract member FilterByProperty : string * System.Collections.IEnumerable * bool * Microsoft.PowerShell.Cmdletization.BehaviorOnNoMatch -> unit
override this.FilterByProperty : string * System.Collections.IEnumerable * bool * Microsoft.PowerShell.Cmdletization.BehaviorOnNoMatch -> unit
Public Overridable Sub FilterByProperty (propertyName As String, allowedPropertyValues As IEnumerable, wildcardsEnabled As Boolean, behaviorOnNoMatch As BehaviorOnNoMatch)

Parameters

propertyName
String

Property name to query on.

allowedPropertyValues
IEnumerable

Property values to accept in the query.

wildcardsEnabled
Boolean

true if allowedPropertyValues should be treated as a String containing a wildcard pattern; false otherwise.

behaviorOnNoMatch
BehaviorOnNoMatch

Describes how to handle filters that didn't match any objects

Applies to