NSPredicate.AllowEvaluation Method

Definition

Overloads

Name Description
AllowEvaluation()
AllowEvaluation(INSPredicateValidating, NSError)

Validates this predicate using the specified validator and, if valid, allows it to be evaluated.

AllowEvaluation()

[Foundation.Export("allowEvaluation")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void AllowEvaluation();
[<Foundation.Export("allowEvaluation")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member AllowEvaluation : unit -> unit
override this.AllowEvaluation : unit -> unit
Attributes

Applies to

AllowEvaluation(INSPredicateValidating, NSError)

Validates this predicate using the specified validator and, if valid, allows it to be evaluated.

[Foundation.Export("allowEvaluationWithValidator:error:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual bool AllowEvaluation(Foundation.INSPredicateValidating validator, out Foundation.NSError? error);
[<Foundation.Export("allowEvaluationWithValidator:error:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member AllowEvaluation : Foundation.INSPredicateValidating * NSError -> bool
override this.AllowEvaluation : Foundation.INSPredicateValidating * NSError -> bool

Parameters

validator
INSPredicateValidating

The INSPredicateValidating object used to validate the predicate before allowing evaluation.

error
NSError

When this method returns false, contains an NSError describing the validation failure; otherwise, null.

Returns

true if the predicate passed validation and is now allowed to be evaluated; otherwise, false.

Attributes

Applies to