Condividi tramite


EventGridFilter Class

Definition

This is the base type that represents a filter. To configure a filter, do not directly instantiate an object of this class. Instead, instantiate an object of a derived class such as BoolEqualsFilter, NumberInFilter, StringEqualsFilter etc depending on the type of the key based on which you want to filter. Please note EventGridFilter is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include BoolEqualsFilter, IsNotNullFilter, IsNullOrUndefinedFilter, NumberGreaterThanFilter, NumberGreaterThanOrEqualsFilter, NumberInFilter, NumberInRangeFilter, NumberLessThanFilter, NumberLessThanOrEqualsFilter, NumberNotInFilter, NumberNotInRangeFilter, StringBeginsWithFilter, StringContainsFilter, StringEndsWithFilter, StringInFilter, StringNotBeginsWithFilter, StringNotContainsFilter, StringNotEndsWithFilter and StringNotInFilter.

[System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.ResourceManager.EventGrid.Models.UnknownFilter))]
public abstract class EventGridFilter : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.EventGrid.Models.EventGridFilter>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.EventGrid.Models.EventGridFilter>
[<System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.ResourceManager.EventGrid.Models.UnknownFilter))>]
type EventGridFilter = class
    interface IJsonModel<EventGridFilter>
    interface IPersistableModel<EventGridFilter>
Public MustInherit Class EventGridFilter
Implements IJsonModel(Of EventGridFilter), IPersistableModel(Of EventGridFilter)
Inheritance
EventGridFilter
Derived
Attributes
Implements

Constructors

EventGridFilter()

Initializes a new instance of EventGridFilter.

Properties

Key

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

Explicit Interface Implementations

IJsonModel<EventGridFilter>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<EventGridFilter>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<EventGridFilter>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<EventGridFilter>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<EventGridFilter>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to