Initializes a new instance of the ConstraintAttribute class.

Namespace: Simol
Assembly: Simol (in Simol.dll) Version: 1.0.0.0

Syntax

C#
public ConstraintAttribute(
	Type constraintType,
	params Object[] constraintArgs
)
Visual Basic
Public Sub New ( _
	constraintType As Type, _
	ParamArray constraintArgs As Object() _
)
Visual C++
public:
ConstraintAttribute(
	Type^ constraintType, 
	... array<Object^>^ constraintArgs
)

Parameters

constraintType
Type: System..::..Type
The constraint type, which must implement IDomainConstraint.
constraintArgs
Type: array<System..::..Object>[]()[][]
Arguments to pass to the custom constraint class constructor.

See Also