HKQuery.GetPredicateForMetadataKey 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.
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
- operatorType
- NSPredicateOperatorType
- value
- NSObject
Returns
- Attributes