 | ConfigurationCommonAddVariable Method (String, String, Object) |
Add a global variable.
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
)
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 valueThe value can be string-typed and will be parsed.
For static initialization the initialization value, if provided, must be Serializable.
See Also