[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Assembly: Db4objects.Db4o (in Db4objects.Db4o.dll)
for objects implementing the
Db4objects.Db4o.Query.IEvaluation
interface.
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![]() | |
---|---|
null |
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:
If the constraint contains attributes that are not yet present in the query graph, the query graph is extended accordingly.
Special behaviour for:
- class System.Type : confine the result to objects of one class or to objects implementing an interface.
- interface Db4objects.Db4o.Query.IEvaluation : run evaluation callbacks against all candidates.