INSPredicateValidating.VisitExpression(NSExpression, NSError) Method

Definition

Validates whether the specified expression is allowed to be evaluated.

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

Parameters

expression
NSExpression

The NSExpression to validate.

error
NSError

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

Returns

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

Attributes

Applies to