編輯

共用方式為


New-AzEventGridStringContainsFilterObject

Create an in-memory object for StringContainsFilter.

Syntax

New-AzEventGridStringContainsFilterObject
   [-Value <String[]>]
   [-Key <String>]
   [<CommonParameters>]

Description

Create an in-memory object for StringContainsFilter.

Examples

Example 1: Create an in-memory object for StringContainsFilter.

New-AzEventGridStringContainsFilterObject -Key "testKey" -Value "value1","value2"

New-AzEventGridStringContainsFilterObject -Key "testKey" -Value "value1","value2"

Create an in-memory object for StringContainsFilter.

Parameters

-Key

The field/property in the event based on which you want to filter.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Value

The set of filter values.

Type:String[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

StringContainsFilter