DOFTypeasUShort Method OpenDOF Object Access Library
Returns the result's value as a ushort.

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

C#
public static ushort asUShort(
	DOFValue value
)

Parameters

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

Return Value

Type: UInt16
the result's value as a short.
Remarks

Returns the result's value as a ushort. Compatible with results of type org.opendof.core.oal.value.DOFUInt16 and all types accepted by asByte(DOFValue) .

See Also

Reference