Tealium.TealiumTagger.SetGlobalVariables C# (CSharp) Method

SetGlobalVariables() public method

Adds the supplied collection of name/value pairs to the collection of global/base variables. These values will be persisted for the lifetime of the application, or until manually cleared.
public SetGlobalVariables ( IDictionary variables ) : void
variables IDictionary
return void
        public void SetGlobalVariables(IDictionary variables)
        {
            if (variables == null)
            {
                return;
            }
            settings.BaseVariables = new Dictionary<string, object>();
            var e = variables.GetEnumerator();
            while (e.MoveNext())
            {
                settings.BaseVariables[e.Key.ToString()] = e.Value;
            }
        }