共用方式為


ExpressionRouterRule Class

Definition

A rule providing inline expression rules.

public class ExpressionRouterRule : Azure.Communication.JobRouter.RouterRule
public class ExpressionRouterRule : Azure.Communication.JobRouter.RouterRule, System.ClientModel.Primitives.IJsonModel<Azure.Communication.JobRouter.ExpressionRouterRule>, System.ClientModel.Primitives.IPersistableModel<Azure.Communication.JobRouter.ExpressionRouterRule>
type ExpressionRouterRule = class
    inherit RouterRule
type ExpressionRouterRule = class
    inherit RouterRule
    interface IJsonModel<ExpressionRouterRule>
    interface IPersistableModel<ExpressionRouterRule>
Public Class ExpressionRouterRule
Inherits RouterRule
Public Class ExpressionRouterRule
Inherits RouterRule
Implements IJsonModel(Of ExpressionRouterRule), IPersistableModel(Of ExpressionRouterRule)
Inheritance
ExpressionRouterRule
Implements

Constructors

ExpressionRouterRule(String)

Initializes a new instance of an expression rule.

Properties

Expression

An expression to evaluate. Should contain return statement with calculated values.

Kind

The type discriminator describing a sub-type of RouterRule.

(Inherited from RouterRule)

Explicit Interface Implementations

IJsonModel<ExpressionRouterRule>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<ExpressionRouterRule>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IJsonModel<RouterRule>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

(Inherited from RouterRule)
IJsonModel<RouterRule>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from RouterRule)
IPersistableModel<ExpressionRouterRule>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ExpressionRouterRule>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<ExpressionRouterRule>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IPersistableModel<RouterRule>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from RouterRule)
IPersistableModel<RouterRule>.GetFormatFromOptions(ModelReaderWriterOptions)

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

(Inherited from RouterRule)
IPersistableModel<RouterRule>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from RouterRule)

Applies to