Terradue.OpenSearch.OpenSearchParameterValueSet.SetValues C# (CSharp) Method

SetValues() public method

Sets the parameter values based on the specified NameValueCollection.
Only matching parameters are taken into account. The match is made by the query string name of the parameter.
public SetValues ( NameValueCollection values ) : void
values System.Collections.Specialized.NameValueCollection The NameValueCollection containing the values to be used.
return void
        public void SetValues(NameValueCollection values)
        {
            foreach (string name in values.AllKeys) {
                if (!parametersByName.ContainsKey(name) || parametersByName[name].IsFixed) continue;
                this.values[parametersByName[name]] = values.GetValues(name);
            }
        }