Tealium.TealiumTagger.SetVariables C# (CSharp) Method

SetVariables() public method

Adds the supplied collection of name/value pairs to the collection of variables. These values will be persisted between calls until ClearVariables is called or the application navigates to a new page.
public SetVariables ( IDictionary variables ) : void
variables IDictionary
return void
        public void SetVariables(IDictionary variables)
        {
            if (variables == null)
            {
                providedVariables = null;
                return;
            }
            providedVariables = new Dictionary<string, object>();
            var e = variables.GetEnumerator();
            while (e.MoveNext())
            {
                providedVariables[e.Key.ToString()] = e.Value;
            }
        }