Click or drag to resize
CalculationWorks Logo
IBcfColumnTypeConstraintIsValid Method
Determines whether the specified value is valid.

Namespace: CalculationWorks.BusinessModel.Behaviors
Assembly: CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 3.0.2.0
Syntax
bool IsValid(
	Object value
)

Parameters

value
Type: SystemObject
The value.

Return Value

Type: Boolean
true if the specified value is valid; otherwise, false.
Remarks

The method is called immediately when a value is written into a cell. Return false to prevent setting the value.

If value is null IsValid should always return true. Null value should be rejected by the BcfColumnNotNullConstraint only.

If IsValid() returns false an ArgumentException will be thrown. The Message property will also contain the IBcfColumnTypeConstraint objects ToString result.

Version Information

CalculationWorks.BusinessModel

Supported in: 3.0, 2.1, 2.0
See Also