Click or drag to resize

LayoutField.GetNumber Method

Returns the decimal value of the index occurence of field in message.

Namespace:  OBCOM.NetSwitchLib.Layouts
Assembly:  OBCOM.NetSwitchLib (in OBCOM.NetSwitchLib.dll) Version: 1.48.7760.35650 (1.48.7760.35650)
Syntax
public virtual Nullable<decimal> GetNumber(
	LayoutMessage message,
	int index
)

Parameters

message
Type: OBCOM.NetSwitchLib.Layouts.LayoutMessage
The message that will be read.
index
Type: System.Int32
The occurence index of the field.

Return Value

Type: Nullable<Decimal>
The decimal value of Field(index) in message.
Exceptions
ExceptionCondition
IndexOutOfRangeException If index is out of bounds.
NotSupportedException If the field's type is not NUMERIC or SIGNED.
Remarks

This method can only be applied to fields of type NUMERIC or SIGNED.

If the value of the field is NULL it returns null (see IsNull for more details).

See Also