Gets the value of the specified Field as an int.
Field to evaluate. The int value of the field.
Note: Numbers are converted in the search server to a float; getFieldAsInt converts the float to an int.
| Exception Type | Condition |
|---|---|
| InvalidCastException | The value of the field is not of type int or the value is null. Use GetFieldAsObject() to check if the value is null. |
| ArgumentException | The field is not present in this ISearchResult. |
ISearchResult Interface | Plumtree.Remote.PRC.Search Namespace