RecalcEngine.UpdateVariable Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| UpdateVariable(String, FormulaValue) |
Create or update a named variable to a value, with custom CanSet/Mutate attributes. |
| UpdateVariable(String, Boolean) | |
| UpdateVariable(String, DateTime) | |
| UpdateVariable(String, Decimal) | |
| UpdateVariable(String, Double) | |
| UpdateVariable(String, Guid) | |
| UpdateVariable(String, Int32) | |
| UpdateVariable(String, Int64) | |
| UpdateVariable(String, String) | |
| UpdateVariable(String, TimeSpan) | |
| UpdateVariable(String, FormulaValue, SymbolProperties) |
Create or update a named variable to a value, with custom CanSet/Mutate attributes. |
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, 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.