NSPredicate.AllowEvaluation Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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