DlmsTypeUnit Class

Enumeration that represens a unit used in DLMS/COSEM.

Definition

Namespace: OddPrg.Protocols.DLMS
Assembly: OddPrg.Frames.Dlms (in OddPrg.Frames.Dlms.dll) Version: 2.0.0.24 (2.0.0.24)
C#
public class DlmsTypeUnit : DlmsTypeEnum
Inheritance
Object    DlmsType    DlmsTypeSimple    DlmsTypeEnum    DlmsTypeUnit

Constructors

DlmsTypeUnit Paramaterless constructor used by XmlSerializer.
DlmsTypeUnit(DlmsTypeEnum) Creates a new instance of DlmsTypeUnit using source enumeration returned by the server.
DlmsTypeUnit(String) Initializes a new instance of DlmsTypeUnit using an unit string.

Properties

TypeName Returns name of the type according to BB 4.1.5.
(Inherited from DlmsTypeEnum)
UnitStr Returns a ReadEn unit string of DLMS unit defined in BB Table 3.
Value Current value of enum
(Inherited from DlmsTypeEnum)
ValueAsDateTime If it is possible returns a dat/time representation of the value.
(Inherited from DlmsType)
ValueAsDouble Returns a number representation of enum value.
(Inherited from DlmsTypeEnum)
ValueAsInvariantString String representation of enum value used to store a value in xml.
(Inherited from DlmsTypeEnum)
ValueAsRawData Returns value as bytes that can be sent to the server (meter).
(Inherited from DlmsTypeEnum)
ValueAsString String representation of current unit
(Overrides DlmsTypeEnumValueAsString)
ValueIsDateTime This property should return true if ValueAsDateTime is available, otherwise it should return false.
(Inherited from DlmsType)
ValueIsMax Returns true if the value is equal to its maximal possible value which can indicate null for some meter types.
(Inherited from DlmsType)
ValueIsNumber Indicates that ValueAsDouble is available.
(Inherited from DlmsTypeEnum)

Methods

ToString Returns string representation of the value. It returns ValueAsString.
(Inherited from DlmsType)

See Also