INSPredicateValidating.VisitPredicate(NSPredicate, NSError) Method

Definition

Validates whether the specified predicate is allowed to be evaluated.

[Foundation.Export("visitPredicate:error:")]
[Foundation.OptionalMember]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual bool VisitPredicate(Foundation.NSPredicate predicate, out Foundation.NSError? error);
[<Foundation.Export("visitPredicate:error:")>]
[<Foundation.OptionalMember>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member VisitPredicate : Foundation.NSPredicate * NSError -> bool
override this.VisitPredicate : Foundation.NSPredicate * NSError -> bool

Parameters

predicate
NSPredicate

The NSPredicate to validate.

error
NSError

When this method returns false, contains an NSError describing why the predicate was rejected; otherwise, null.

Returns

true if the predicate is valid and allowed; otherwise, false.

Attributes

Applies to