 | ConfigurationCommonAddVariable Method (String, String, Object, Boolean) |
Add a global variable, allowing constants.
Use the runtime API to set variable values or EPL statements to change variable values.
Namespace:
com.espertech.esper.common.client.configuration.common
Assembly:
NEsper.Common (in NEsper.Common.dll) Version: 8.0.0.0
Syntaxpublic void AddVariable(
string variableName,
string type,
Object initializationValue,
bool constant
)
Parameters
- variableName
- Type: SystemString
name of the variable to add - type
- Type: SystemString
the type name of the variable, must be a primitive or boxed builtin scalar type or "object" for any
value or an event type name or a class name or fully-qualified class name. Append "[]" for array.
- initializationValue
- Type: SystemObject
is the first assigned valueFor static initialization the value can be string-typed and will be parsed.
For static initialization the initialization value, if provided, must be Serializable />.
- constant
- Type: SystemBoolean
true to identify the variable as a constant
See Also