INSPredicateValidating Interface
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.
Provides custom validation logic for NSPredicate and NSExpression objects before they are evaluated.
[Foundation.Protocol(BackwardsCompatibleCodeGeneration=false, Name="NSPredicateValidating", WrapperType=typeof(Foundation.NSPredicateValidatingWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="VisitPredicate", ParameterByRef=new System.Boolean[] { false, true }, ParameterType=new System.Type[] { typeof(Foundation.NSPredicate), typeof(Foundation.NSError) }, ReturnType=typeof(System.Boolean), Selector="visitPredicate:error:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="VisitExpression", ParameterByRef=new System.Boolean[] { false, true }, ParameterType=new System.Type[] { typeof(Foundation.NSExpression), typeof(Foundation.NSError) }, ReturnType=typeof(System.Boolean), Selector="visitExpression:error:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="VisitOperatorType", ParameterByRef=new System.Boolean[] { false, true }, ParameterType=new System.Type[] { typeof(Foundation.NSPredicateOperatorType), typeof(Foundation.NSError) }, ReturnType=typeof(System.Boolean), Selector="visitOperatorType:error:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="VisitExpressionKeyPath", ParameterByRef=new System.Boolean[] { false, false, false, true }, ParameterType=new System.Type[] { typeof(Foundation.NSExpression), typeof(System.String), typeof(System.String), typeof(Foundation.NSError) }, ReturnType=typeof(System.Boolean), Selector="visitExpressionKeyPath:scope:key:error:")]
public interface INSPredicateValidating : IDisposable, ObjCRuntime.INativeObject
[<Foundation.Protocol(BackwardsCompatibleCodeGeneration=false, Name="NSPredicateValidating", WrapperType=typeof(Foundation.NSPredicateValidatingWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="VisitPredicate", ParameterByRef=new System.Boolean[] { false, true }, ParameterType=new System.Type[] { typeof(Foundation.NSPredicate), typeof(Foundation.NSError) }, ReturnType=typeof(System.Boolean), Selector="visitPredicate:error:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="VisitExpression", ParameterByRef=new System.Boolean[] { false, true }, ParameterType=new System.Type[] { typeof(Foundation.NSExpression), typeof(Foundation.NSError) }, ReturnType=typeof(System.Boolean), Selector="visitExpression:error:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="VisitOperatorType", ParameterByRef=new System.Boolean[] { false, true }, ParameterType=new System.Type[] { typeof(Foundation.NSPredicateOperatorType), typeof(Foundation.NSError) }, ReturnType=typeof(System.Boolean), Selector="visitOperatorType:error:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="VisitExpressionKeyPath", ParameterByRef=new System.Boolean[] { false, false, false, true }, ParameterType=new System.Type[] { typeof(Foundation.NSExpression), typeof(System.String), typeof(System.String), typeof(Foundation.NSError) }, ReturnType=typeof(System.Boolean), Selector="visitExpressionKeyPath:scope:key:error:")>]
type INSPredicateValidating = interface
interface INativeObject
interface IDisposable
- Derived
- Attributes
- Implements
Remarks
Implement this protocol to control which predicates and expressions are considered safe for evaluation. Each visitor method is called during validation, allowing the implementation to inspect and approve or reject individual components of a predicate tree.
Properties
| Name | Description |
|---|---|
| Handle |
Handle (pointer) to the unmanaged object representation. (Inherited from INativeObject) |
Methods
| Name | Description |
|---|---|
| VisitExpression(NSExpression, NSError) |
Validates whether the specified expression is allowed to be evaluated. |
| VisitExpressionKeyPath(NSExpression, String, String, NSError) |
Validates whether the specified key path expression is allowed to be evaluated. |
| VisitOperatorType(NSPredicateOperatorType, NSError) |
Validates whether the specified comparison operator type is allowed to be used in a predicate. |
| VisitPredicate(NSPredicate, NSError) |
Validates whether the specified predicate is allowed to be evaluated. |
Extension Methods
| Name | Description |
|---|---|
| GetHandle(INativeObject) | |
| GetNonNullHandle(INativeObject, String) | |