Oracle® WebCenter Interaction Development Kit 10.3.3.0.0

ISearchResult.GetFieldAsInt Method 

Gets the value of the specified Field as an int.

int GetFieldAsInt(
   Field field
);

Parameters

field
The Field to evaluate.

Return Value

The int value of the field.

Remarks

Note: Numbers are converted in the search server to a float; getFieldAsInt converts the float to an int.

Exceptions

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.

See Also

ISearchResult Interface | Plumtree.Remote.PRC.Search Namespace