IFieldState<T>.IsUnknown(T) Method

Definition

Test to see if the field value form state has a value.

public bool IsUnknown (T state);
abstract member IsUnknown : 'T -> bool
Public Function IsUnknown (state As T) As Boolean

Parameters

state
T

Form state to check.

Returns

Boolean

True if value is unknown.

Remarks

For value types (numbers, bools, date time) a value is unknown only if the field is nullable and it is null.

For enum based values (both simple and enumerated) they can also be nullable or the 0 enum value if not nullable.

For non value types like string the test is to see if the field is actually null.

Applies to