次の方法で共有


EventNameFilter Class

Definition

Filter events by their name.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20220801Preview.EventNameFilterTypeConverter))]
public class EventNameFilter : Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20220801Preview.IEventNameFilter, Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20220801Preview.EventNameFilterTypeConverter))>]
type EventNameFilter = class
    interface IEventNameFilter
    interface IJsonSerializable
    interface IEventListenerFilter
    interface IValidates
Public Class EventNameFilter
Implements IEventNameFilter, IValidates
Inheritance
EventNameFilter
Attributes
Implements

Constructors

EventNameFilter()

Creates an new EventNameFilter instance.

Properties

SystemEvent

Gets or sets a list of system events. Supported events: "connected" and "disconnected". Blocking event "connect" is not supported because it requires a response.

Type
UserEventPattern

Gets or sets a matching pattern for event names. There are 3 kinds of patterns supported:

  1. "*", it matches any event name
  2. Combine multiple events with ",", for example "event1,event2", it matches events "event1" and "event2"
  3. A single event name, for example, "event1", it matches "event1"

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of EventNameFilter.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of EventNameFilter.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20220801Preview.IEventNameFilter.

FromJsonString(String)

Creates a new instance of EventNameFilter, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of EventNameFilter into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to