PeoplePickerRemediation.Console.PeoplePickerRemediation.GetProperty C# (CSharp) Method

GetProperty() private static method

private static GetProperty ( SearchResult searchResult, string PropertyName ) : string
searchResult SearchResult
PropertyName string
return string
        private static string GetProperty(SearchResult searchResult, string PropertyName)
        {
            if (searchResult.Properties.Contains(PropertyName))
            {
                return searchResult.Properties[PropertyName][0].ToString();
            }
            else
            {
                return string.Empty;
            }
        }