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

SetValuesByIdentifier() public method

Sets multiple values for the OpenSearch parameter specified by its identifier.
public SetValuesByIdentifier ( string identifier, IEnumerable values ) : void
identifier string The parameter identifier, i.e. the fully qualified identifier between the curly brackets in the OpenSearch description URL template, e.g. "geo:box".
values IEnumerable An array containing the values.
return void
        public void SetValuesByIdentifier(string identifier, IEnumerable<string> values)
        {
            if (!parametersByIdentifier.ContainsKey(identifier)) throw new OpenSearchException(String.Format("Parameter with identifier \"{0}\" is unknown", identifier));
            this.values[parametersByIdentifier[identifier]] = values.ToArray();
        }

Same methods

OpenSearchParameterValueSet::SetValuesByIdentifier ( string namespaceUri, string localName, IEnumerable values ) : void