INSPredicateValidating.VisitExpressionKeyPath Method

Definition

Validates whether the specified key path expression is allowed to be evaluated.

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

Parameters

expression
NSExpression

The key path NSExpression to validate.

scope
String

The scope component of the key path, or null if no scope is specified.

key
String

The key component of the key path, or null if no key is specified.

error
NSError

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

Returns

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

Attributes

Applies to