INSPredicateValidating.VisitPredicate(NSPredicate, NSError) 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.
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