Skip to main content

Matchterm

Properties

NameTypeDescriptionNotes
NameStringThe attribute name[optional]
ValueStringThe attribute value[optional]
OpStringThe operator between name and value[optional]
ContainerBooleanIf it is a container or a real match term[optional] [default to $false]
AndBooleanIf it is AND logical operator for the children match terms[optional] [default to $false]
Children[[]System.Collections.Hashtable]https://learn.microsoft.com/en-us/dotnet/api/system.collections.hashtable?view=net-9.0The children under this match term[optional]

Examples

  • Prepare the resource
$Matchterm = Initialize-Matchterm  -Name mail `
-Value 1234 Albany Dr `
-Op eq `
-Container true `
-And false `
-Children [{"name":"businessCategory","value":"Service","op":"eq","container":false,"and":false,"children":null}]
  • Convert the resource to JSON
$Matchterm | ConvertTo-JSON

[Back to top]