private void Search_Click(object sender, RoutedEventArgs e) { Searching = true; Results = null; SearchError = null; OnPropertiesGroup2Changed(); List <string> searchTerms = new List <string>(); if (string.IsNullOrEmpty(SearchName) == false) { searchTerms.Add(@"givenName"); searchTerms.Add(SearchName); } if (string.IsNullOrEmpty(SearchEmail) == false) { searchTerms.Add(@"givenEmail"); searchTerms.Add(SearchEmail); } operationId = endpoint.BeginUserSearch(null, searchTerms); }