DOFResultTasInt Method OpenDOF Object Access Library
Returns the result's value as an int.

Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax

C#
int asInt()

Return Value

Type: Int32
the result's value as an int.
Remarks

Returns the result's value as an int. Compatible with results of type org.opendof.core.oal.value.DOFInt32 , org.opendof.core.oal.value.DOFUInt16 and all types accepted by DOFResult<T>.asShort() .

Throws ClassCastException if called on a non-integer result.

See Also

Reference