PopulateAndValidateTagsForProperties() public static method

Populate and validate SavedSearch.Properties.Tags from a Hashtable of tags specified in the cmdlet.
public static PopulateAndValidateTagsForProperties ( Hashtable tags, string query ) : IList
tags System.Collections.Hashtable
query string
return IList
        protected override void ProcessRecord()
        {
            SavedSearch properties = new SavedSearch()
            {
                Category    = this.Category,
                DisplayName = this.DisplayName,
                Query       = this.Query,
                Version     = this.Version
            };

            properties.Tags = SearchCommandHelper.PopulateAndValidateTagsForProperties(this.Tag, properties.Query);
            WriteObject(OperationalInsightsClient.CreateOrUpdateSavedSearch(ResourceGroupName, WorkspaceName, SavedSearchId, properties, Force, ConfirmAction), true);
        }
        protected override void ProcessRecord()
        {
            SavedSearch properties = new SavedSearch()
            {
                Category           = this.Category,
                DisplayName        = this.DisplayName,
                Query              = this.Query,
                Version            = this.Version,
                FunctionAlias      = this.FunctionAlias,
                FunctionParameters = this.FunctionParameter
            };

            bool patch = this.IsParameterBound(c => c.FunctionParameter);

            properties.Tags = SearchCommandHelper.PopulateAndValidateTagsForProperties(this.Tag, properties.Query);
            WriteObject(OperationalInsightsClient.CreateOrUpdateSavedSearch(ResourceGroupName, WorkspaceName, SavedSearchId, properties, patch, true, ConfirmAction, ETag), true);
        }