Modifier

Partager via


HKQuery.GetPredicateForMetadataKey Method

Definition

Overloads

GetPredicateForMetadataKey(NSString)

Creates and returns a predicate that can be used to get objects by metadata key.

GetPredicateForMetadataKey(NSString, NSObject[])

Creates and returns a predicate that can be used to get objects by metadata key and value.

GetPredicateForMetadataKey(NSString, NSPredicateOperatorType, NSObject)

Creates and returns a predicate that can be used to get objects by metadata key and value.

GetPredicateForMetadataKey(NSString)

Creates and returns a predicate that can be used to get objects by metadata key.

[Foundation.Export("predicateForObjectsWithMetadataKey:")]
public static Foundation.NSPredicate GetPredicateForMetadataKey (Foundation.NSString metadataKey);
static member GetPredicateForMetadataKey : Foundation.NSString -> Foundation.NSPredicate

Parameters

metadataKey
NSString

Returns

Attributes

Applies to

GetPredicateForMetadataKey(NSString, NSObject[])

Creates and returns a predicate that can be used to get objects by metadata key and value.

[Foundation.Export("predicateForObjectsWithMetadataKey:allowedValues:")]
public static Foundation.NSPredicate GetPredicateForMetadataKey (Foundation.NSString metadataKey, Foundation.NSObject[] allowedValues);
static member GetPredicateForMetadataKey : Foundation.NSString * Foundation.NSObject[] -> Foundation.NSPredicate

Parameters

metadataKey
NSString
allowedValues
NSObject[]

Returns

Attributes

Applies to

GetPredicateForMetadataKey(NSString, NSPredicateOperatorType, NSObject)

Creates and returns a predicate that can be used to get objects by metadata key and value.

[Foundation.Export("predicateForObjectsWithMetadataKey:operatorType:value:")]
public static Foundation.NSPredicate GetPredicateForMetadataKey (Foundation.NSString metadataKey, Foundation.NSPredicateOperatorType operatorType, Foundation.NSObject value);
static member GetPredicateForMetadataKey : Foundation.NSString * Foundation.NSPredicateOperatorType * Foundation.NSObject -> Foundation.NSPredicate

Parameters

metadataKey
NSString
value
NSObject

Returns

Attributes

Applies to