Click or drag to resize

ConstraintQueryBuilder.AddConstraintFunction Method (AccessConstraintEvaluator, IServiceProvider)

Adds a constraint function to the query. Times passed to the evaluator will be expressed on the given participant.

Namespace:  AGI.Foundation.Access
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax
public void AddConstraintFunction(
	AccessConstraintEvaluator evaluator,
	IServiceProvider requiredTimeObserver
)

Parameters

evaluator
Type: AGI.Foundation.Access.AccessConstraintEvaluator
The evaluator for the constraint function to add.
requiredTimeObserver
Type: System.IServiceProvider
The participant on which times passed to the evaluator should be expressed. For a constraint that implements ISingleObjectConstraint, this parameter must be null or the same as ConstrainedObject. For a constraint that implements ILinkConstraint, this parameter must be null or the same as one of the two ends of the ConstrainedLink. If this parameter is null, this method is identical to AddConstraintFunction(AccessConstraintEvaluator).
See Also