Freigeben über


RecalcEngine.UpdateVariable Method

Definition

Overloads

UpdateVariable(String, FormulaValue)

Create or update a named variable to a value, with custom CanSet/Mutate attributes.

public void UpdateVariable(string name, Microsoft.PowerFx.Types.FormulaValue value);
member this.UpdateVariable : string * Microsoft.PowerFx.Types.FormulaValue -> unit
Public Sub UpdateVariable (name As String, value As FormulaValue)

Parameters

name
String

variable name. This can be used in other formulas.

value
FormulaValue

constant value. The variable will take the type of this value on create.

Applies to

UpdateVariable(String, Boolean)

public void UpdateVariable(string name, bool value);
member this.UpdateVariable : string * bool -> unit
Public Sub UpdateVariable (name As String, value As Boolean)

Parameters

name
String
value
Boolean

Applies to

UpdateVariable(String, DateTime)

public void UpdateVariable(string name, DateTime value);
member this.UpdateVariable : string * DateTime -> unit
Public Sub UpdateVariable (name As String, value As DateTime)

Parameters

name
String
value
DateTime

Applies to

UpdateVariable(String, Decimal)

public void UpdateVariable(string name, decimal value);
member this.UpdateVariable : string * decimal -> unit
Public Sub UpdateVariable (name As String, value As Decimal)

Parameters

name
String
value
Decimal

Applies to

UpdateVariable(String, Double)

public void UpdateVariable(string name, double value);
member this.UpdateVariable : string * double -> unit
Public Sub UpdateVariable (name As String, value As Double)

Parameters

name
String
value
Double

Applies to

UpdateVariable(String, Guid)

public void UpdateVariable(string name, Guid value);
member this.UpdateVariable : string * Guid -> unit
Public Sub UpdateVariable (name As String, value As Guid)

Parameters

name
String
value
Guid

Applies to

UpdateVariable(String, Int32)

public void UpdateVariable(string name, int value);
member this.UpdateVariable : string * int -> unit
Public Sub UpdateVariable (name As String, value As Integer)

Parameters

name
String
value
Int32

Applies to

UpdateVariable(String, Int64)

public void UpdateVariable(string name, long value);
member this.UpdateVariable : string * int64 -> unit
Public Sub UpdateVariable (name As String, value As Long)

Parameters

name
String
value
Int64

Applies to

UpdateVariable(String, String)

public void UpdateVariable(string name, string value);
member this.UpdateVariable : string * string -> unit
Public Sub UpdateVariable (name As String, value As String)

Parameters

name
String
value
String

Applies to

UpdateVariable(String, TimeSpan)

public void UpdateVariable(string name, TimeSpan value);
member this.UpdateVariable : string * TimeSpan -> unit
Public Sub UpdateVariable (name As String, value As TimeSpan)

Parameters

name
String
value
TimeSpan

Applies to

UpdateVariable(String, FormulaValue, SymbolProperties)

Create or update a named variable to a value, with custom CanSet/Mutate attributes.

public void UpdateVariable(string name, Microsoft.PowerFx.Types.FormulaValue value, Microsoft.PowerFx.SymbolProperties newVarProps);
member this.UpdateVariable : string * Microsoft.PowerFx.Types.FormulaValue * Microsoft.PowerFx.SymbolProperties -> unit
Public Sub UpdateVariable (name As String, value As FormulaValue, newVarProps As SymbolProperties)

Parameters

name
String

variable name. This can be used in other formulas.

value
FormulaValue

constant value. The variable will take the type of this value on create.

newVarProps
SymbolProperties

symbol properties. This is only used on the initial create of the variable.

Applies to