Gets the value of the specified Field as an int.
Field to evaluate
int value of field
Note that numbers are converted in the search server to a float; getFieldAsInt will then convert the float to an int.
| Exception Type | Condition |
|---|---|
| InvalidCastException | if 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 | if the field is not present in this ISearchResult
|
ISearchResult Interface | Plumtree.Remote.PRC.Search Namespace