DB2Decimal.Value Property

Gets the value stored in the DB2Decimal structure. This method will throw an OverflowException if the precision of the DB2Decimal value is greater than what a .NET decimal type can contain.

Namespace:
IBM.Data.DB2Types
Assembly:
IBM.Data.DB2 (in IBM.Data.DB2.dll)

Syntax


[Visual Basic]
Public ReadOnly Property Value As Decimal
[C#]
public decimal Value {get;}
[C++]
public: __property Decimal get_Value();
[JScript]
public function get Value() : decimal;

Exceptions

Exception type Condition
DB2®NullValueException The DB2Decimal.Null value cannot be assigned to a decimal.
DB2TruncateException Significant figures are lost when assigning the DB2Decimal value to a decimal.
OverflowException The value being assigned to a decimal is too large.

Property value

A decimal representing the DB2Decimal instance.