public virtual void Process(SearchSuggestionsResult searchSuggestionsResult) { foreach (var resultItem in searchSuggestionsResult.SuggestionResults) { var item = new PSObject(); item.Properties.Add(new PSVariableProperty(new PSVariable("Query", resultItem.Query))); item.Properties.Add(new PSVariableProperty(new PSVariable("IsPersonal", resultItem.IsPersonal))); Cmdlet.WriteObject(item); } }
public override void Process(SearchSuggestionsResult searchSuggestionsResult) { var item = new PSObject(searchSuggestionsResult); Cmdlet.WriteObject(item); }