QueryBuilder.ExcludeByProperty 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.
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