Tealium.TealiumTagger.SetGlobalVariable C# (CSharp) Method

SetGlobalVariable() public method

Adds an individual name/value pair to the collection of global/base variables. The value will be persisted for the lifetime of the application, or until manually cleared.
public SetGlobalVariable ( string name, string value ) : void
name string
value string
return void
        public void SetGlobalVariable(string name, string value)
        {
            if (settings.BaseVariables == null)
                settings.BaseVariables = new Dictionary<string, object>();
            settings.BaseVariables[name] = value;
        }