Skip to main content

SearchcriteriaTextQuery

Properties

NameTypeDescriptionNotes
Terms[]StringTerms to search for.[optional]
Fields[]StringFields to search within.[optional]
MatchAnyBooleanWhether to match any of the terms.[optional] [default to $false]

Examples

  • Prepare the resource
$SearchcriteriaTextQuery = Initialize-SearchcriteriaTextQuery  -Terms ["admin","user"] `
-Fields ["role","name"] `
-MatchAny true
  • Convert the resource to JSON
$SearchcriteriaTextQuery | ConvertTo-JSON

[Back to top]