private static GetProperty ( SearchResult searchResult, string PropertyName ) : string | ||
searchResult | SearchResult | |
PropertyName | string | |
Результат | string |
private static string GetProperty(SearchResult searchResult, string PropertyName)
{
if (searchResult.Properties.Contains(PropertyName))
{
return searchResult.Properties[PropertyName][0].ToString();
}
else
{
return string.Empty;
}
}