Share via


QueryBuilder.ExcludeByProperty Method

Definition

Modifies the query, so that it does not return objects with a given property value.

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

Parameters

propertyName
String

Property name to query on.

excludedPropertyValues
IEnumerable

Property values to reject in the query.

wildcardsEnabled
Boolean

true if excludedPropertyValues 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