ABMultiValue<T> Class
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.
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:
- Getting values, labels, and identifiers: Count, IEnumerable.GetEnumerator(), GetFirstIndexOfValue(NSObject), GetIndexForIdentifier(Int32), GetValues(), Item[nint]. :
- Getting Property Information: PropertyType. :
- Changing properties: ToMutableMultiValue(). :
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 |
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 |
GetIndexForIdentifier(Int32) |
Gets the index within this collection of the
ABMultiValueEntry<T>
entry having an
Identifier
value equal to |
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>. |