CalculationWorks Logo
IBcfColumnTypeConstraintIsValid Method CalculationWorks BCF Library 1.1 for .NET Framework 4.5

[This is preliminary documentation and is subject to change.]

Determines whether the specified value is valid.

Namespace: CalculationWorks.BusinessModel.Behaviors
Assembly: CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 1.1.0.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.

See Also

Reference