Click or drag to resize

ConfigurationCommonAddVariable Method (String, Type, 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
Syntax
C#
public void AddVariable(
	string variableName,
	Type type,
	Object initializationValue
)

Parameters

variableName
Type: SystemString
name of the variable to add
type
Type: SystemType
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 value.For static initialization the value can be string-typed and will be parsed. For static initialization the initialization value, if provided, must be Serializable.
See Also