The DataValue type exposes the following members.
Back to Top
Properties
Name | Description | |
---|---|---|
DataError | Obsolete.
Gets or sets the data error contained in this DataValue instance.
The getter returns null if HasDataError is false.
After invoking the setter HasDataError will be true, HasValidValue and IsNullValue will be false,
and ValidValue will return a default value.
| |
DataType |
Gets the data type corresponding to the runtime values that can be stored in this value container.
The data type is fixed, since a data value cannot be used for values of varying types.
| |
ErrorValue | Obsolete.
Gets or sets the data error associated with this DataValue.
| |
HasDataError | Obsolete.
Gets a value indicating whether this DataValue (i) is invalid and (ii) has an associated
data error.
If HasDataError is true, then HasValidValue and IsNullValue are both false.
| |
HasValidValue |
Gets a value indicating whether this DataValue contains a valid value.
If HasValidValue is false, then either IsNullValue is true or HasDataError is true, but not both.
If HasValidValue is true, the IsNullValue and HasDataError are both false.
| |
Index | Obsolete.
Gets the row index associated with this DataValue, if applicable.
| |
IsError | Obsolete.
Gets a value indicating whether the DataValue represents an error.
| |
IsNullValue |
Gets a value indicating whether this DataValue instance represents a null value,
or, more precisely, an invalid value with a null data error.
| |
IsValid | Obsolete.
Gets or sets a value indicating whether the contained data value is valid.
| |
ValidValue |
Gets or sets the runtime value contained in this DataValue instance, as a boxed value.
The getter returns null for reference types and default(T) for value types, if the HasValidValue is false.
After setting a valid value HasValidValue will be true, HasDataError and IsNullValue will be false,
and DataError will return null.
| |
Value | Obsolete.
Gets the value contained in this DataValue instance.
|
See Also