DOFTypeasInt 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#
public static int asInt(
	DOFValue value
)

Parameters

value
Type: org.opendof.core.oalDOFValue
Value to return as int. Throws ClassCastException if called on a non-integer result.

Return Value

Type: Int32
the 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 asShort(DOFValue) .

See Also

Reference