[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

adds a constraint to this node.

Namespace: Db4objects.Db4o.Query
Assembly:   Db4objects.Db4o (in Db4objects.Db4o.dll)

Syntax

Visual Basic (Declaration)
Function Constrain ( _
	constraint As Object _
) As IConstraint
C#
IConstraint Constrain (
	Object constraint
)
Visual C++
IConstraint^ Constrain (
	Object^ constraint
)

Parameters

constraint
System.Object
the constraint to be added to this Query.

Return Value

Db4objects.Db4o.Query.IConstraint a new Db4objects.Db4o.Query.IConstraint for this query node or
 Copy imageCopy Code
null
for objects implementing the Db4objects.Db4o.Query.IEvaluation interface.

Remarks

adds a constraint to this node.

If the constraint contains attributes that are not yet present in the query graph, the query graph is extended accordingly.

Special behaviour for: