Table of Contents

Class EvaluateExpression

Namespace
DuetAPI.Commands
Assembly
DuetAPI.dll

Evaluate an arbitrary expression on the given channel

[RequiredPermissions(SbcPermissions.CommandExecution)]
public class EvaluateExpression : Command<JsonElement>
Inheritance
EvaluateExpression
Derived
Inherited Members

Constructors

EvaluateExpression()

public EvaluateExpression()

Properties

Channel

Code channel where the expression is evaluated

public CodeChannel Channel { get; set; }

Property Value

CodeChannel

Expression

Expression to evaluate

public string Expression { get; set; }

Property Value

string

Methods

UpdateFromJson(JsonElement)

Update this instance from a given JSON element

public override void UpdateFromJson(JsonElement jsonElement)

Parameters

jsonElement JsonElement

Element to update this intance from

Remarks

This method is auto-generated

Exceptions

JsonException

Failed to deserialize data

UpdateFromJsonReader(ref Utf8JsonReader)

Update this instance from a given JSON element

public override void UpdateFromJsonReader(ref Utf8JsonReader reader)

Parameters

reader Utf8JsonReader

Reader to update this intance from

Remarks

This method is auto-generated

Exceptions

JsonException

Failed to deserialize data