Edytuj

Udostępnij za pośrednictwem


ABMultiValue<T> Class

Definition

A collection of ABMultiValueEntry<T> entries.

[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.None, "Use the 'Contacts' API instead.")]
public class ABMultiValue<T> : IDisposable, ObjCRuntime.INativeObject, System.Collections.Generic.IEnumerable<AddressBook.ABMultiValueEntry<T>>
type ABMultiValue<'T> = class
    interface INativeObject
    interface IDisposable
    interface seq<ABMultiValueEntry<'T>>
    interface IEnumerable

Type Parameters

T

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

Inheritance
ABMultiValue<T>
Derived
Attributes
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

Count

The number of entries in the ABMultiValue<T>.

Handle

Handle (pointer) to the unmanaged object representation.

IsReadOnly

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

Item[nint]

Gets the ABMultiValueEntry<T> instances at the specified index.

PropertyType

The type of the values in the collection.

Methods

Dispose()

Releases the resources used by the ABMultiValue`1 object.

Dispose(Boolean)

Releases the resources used by the ABMultiValue`1 object.

Finalize()

Finalizer for the ABMultiValue`1 object

GetEnumerator()

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

GetFirstIndexOfValue(NSObject)

Gets the first index of value within the collection.

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.

ToMutableMultiValue()

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

Explicit Interface Implementations

IEnumerable.GetEnumerator()

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

Applies to