Share via


ABMultiValue<T> Class

Definition

A collection of ABMultiValueEntry<T> entries.

public class ABMultiValue<T> : CoreFoundation.NativeObject, System.Collections.Generic.IEnumerable<AddressBook.ABMultiValueEntry<T>>
type ABMultiValue<'T> = class
    inherit NativeObject
    interface seq<ABMultiValueEntry<'T>>
    interface IEnumerable

Type Parameters

T

The type of value stored in the ABMultiValue<T> collection.

Inheritance
Derived
Implements

Remarks

ABMultiValue<T> instances are used for ABPerson properties which are collections of values of the same type. For example, GetPhones() returns a ABMultiValue<string> containing phone numbers.

A ABMultiValue<T> is a collection of ABMultiValueEntry<T> entries, where each entry contains a Value, Label, and Identifier.

Supported operations include:

Properties

Name Description
Count

The number of entries in the ABMultiValue<T>.

Handle (Inherited from DisposableObject)
IsReadOnly

Gets a value indicating whether the ABMultiValue<T> is read-only.

Item[IntPtr]
Owns (Inherited from DisposableObject)
PropertyType

The type of the values in the collection.

Methods

Name Description
ClearHandle() (Inherited from DisposableObject)
Dispose() (Inherited from DisposableObject)
Dispose(Boolean) (Inherited from NativeObject)
Equals(Object) (Inherited from DisposableObject)
GetCheckedHandle() (Inherited from DisposableObject)
GetEnumerator()

Returns an enumerator that iterates through all entries in the ABMultiValue<T>.

GetFirstIndexOfValue(NSObject)

Gets the first index of value within the collection.

GetHashCode() (Inherited from DisposableObject)
GetIndexForIdentifier(Int32)

Gets the index within this collection of the ABMultiValueEntry<T> entry having an Identifier value equal to identifier.

GetValues()

Gets all values within the collection.

InitializeHandle(NativeHandle) (Inherited from DisposableObject)
Release() (Inherited from NativeObject)
Retain() (Inherited from NativeObject)
ToMutableMultiValue()

Returns an enumerator that iterates through all entries in the ABMultiValue<T>.

Explicit Interface Implementations

Name Description
IEnumerable.GetEnumerator()

Returns an enumerator that iterates through all entries in the ABMultiValue<T>.

Extension Methods

Name Description
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)

Applies to