MonobjcMonobjc Documented Class Library
SearchElementForPropertyLabelKeyValueComparison Method (property, label, key, value, comparison)
NamespacesMonobjc.AddressBookABGroupSearchElementForPropertyLabelKeyValueComparison(NSString, NSString, NSString, Id, ABSearchComparison)

Returns a search element object that searches for records of this type.

Original signature is '+ (ABSearchElement *)searchElementForProperty:(NSString *)property label:(NSString *)label key:(NSString *)key value:(id)value comparison:(ABSearchComparison)comparison'

Available in Mac OS X v10.2 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static ABSearchElement SearchElementForPropertyLabelKeyValueComparison(
	NSString property,
	NSString label,
	NSString key,
	Id value,
	ABSearchComparison comparison
Public Shared Function SearchElementForPropertyLabelKeyValueComparison ( _
	property As NSString, _
	label As NSString, _
	key As NSString, _
	value As Id, _
	comparison As ABSearchComparison _
) As ABSearchElement
static ABSearchElement^ SearchElementForPropertyLabelKeyValueComparison(
	NSString^ property, 
	NSString^ label, 
	NSString^ key, 
	Id^ value, 
	ABSearchComparison comparison
property (NSString)
The name of the property to search on. It cannot be nil. For a full list of the properties, see “Default Record Properties” in Address Book Objective-C Constants Reference and “Default Group Properties” in Address Book Objective-C Constants Reference.
label (NSString)
The label name for a multivalue list. If property does not have multiple values, pass nil. If property does have multiple values, pass nil to search all the values. By default, ABGroup records don’t contain any multivalue list properties.
key (NSString)
The key name for a dictionary. Pass nil if property is not a dictionary. If property is a dictionary, pass nil to search all keys. By default, ABGroup records don’t contain any properties that are dictionaries.
value (Id)
What you’re searching for. If nil, the only supported value for comparison is kABEqual or kABNotEqual.
comparison (ABSearchComparison)
The type of comparison to perform and is an ABSearchComparison, such as kABEqual or kABPrefixMatchCaseInsensitive.
Return Value

[Missing <returns> documentation for "M:Monobjc.AddressBook.ABGroup.SearchElementForPropertyLabelKeyValueComparison(Monobjc.Foundation.NSString,Monobjc.Foundation.NSString,Monobjc.Foundation.NSString,Monobjc.Id,Monobjc.AddressBook.ABSearchComparison)"]

Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AddressBook (Module: Monobjc.AddressBook)