NSMutableDictionary.FromObjectsAndKeys Method

Definition

Overloads

Name Description
FromObjectsAndKeys(NSObject[], NSObject[])

Creates a mutable dictionary from the specified arrays of objects and keys.

FromObjectsAndKeys(Object[], Object[])

Creates a mutable dictionary from the specified arrays of objects and keys.

FromObjectsAndKeys(NSObject[], NSObject[], IntPtr)

Creates a mutable dictionary from the specified number of objects and keys from the arrays.

FromObjectsAndKeys(Object[], Object[], IntPtr)

Creates a mutable dictionary from the specified number of objects and keys from the arrays.

FromObjectsAndKeys(NSObject[], NSObject[])

Creates a mutable dictionary from the specified arrays of objects and keys.

public static Foundation.NSMutableDictionary FromObjectsAndKeys(Foundation.NSObject[] objects, Foundation.NSObject[] keys);
public static Foundation.NSMutableDictionary FromObjectsAndKeys(Foundation.NSObject?[] objects, Foundation.NSObject?[] keys);
static member FromObjectsAndKeys : Foundation.NSObject[] * Foundation.NSObject[] -> Foundation.NSMutableDictionary

Parameters

objects
NSObject[]

The array of objects to add to the dictionary.

keys
NSObject[]

The array of keys for the objects.

Returns

A new mutable dictionary containing the specified objects and keys.

Exceptions

Thrown when objects or keys is null.

Thrown when the arrays have different sizes.

Applies to

FromObjectsAndKeys(Object[], Object[])

Creates a mutable dictionary from the specified arrays of objects and keys.

public static Foundation.NSMutableDictionary FromObjectsAndKeys(object[] objects, object[] keys);
static member FromObjectsAndKeys : obj[] * obj[] -> Foundation.NSMutableDictionary

Parameters

objects
Object[]

The array of objects to add to the dictionary.

keys
Object[]

The array of keys for the objects.

Returns

A new mutable dictionary containing the specified objects and keys.

Exceptions

Thrown when objects or keys is null.

Thrown when the arrays have different sizes.

Applies to

FromObjectsAndKeys(NSObject[], NSObject[], IntPtr)

Creates a mutable dictionary from the specified number of objects and keys from the arrays.

public static Foundation.NSMutableDictionary FromObjectsAndKeys(Foundation.NSObject[] objects, Foundation.NSObject[] keys, IntPtr count);
public static Foundation.NSMutableDictionary FromObjectsAndKeys(Foundation.NSObject?[] objects, Foundation.NSObject?[] keys, IntPtr count);
static member FromObjectsAndKeys : Foundation.NSObject[] * Foundation.NSObject[] * nativeint -> Foundation.NSMutableDictionary

Parameters

objects
NSObject[]

The array of objects to add to the dictionary.

keys
NSObject[]

The array of keys for the objects.

count
IntPtr

nativeint

The number of elements to copy from the arrays.

Returns

A new mutable dictionary containing the specified objects and keys.

Exceptions

Thrown when objects or keys is null.

Thrown when count is invalid.

Applies to

FromObjectsAndKeys(Object[], Object[], IntPtr)

Creates a mutable dictionary from the specified number of objects and keys from the arrays.

public static Foundation.NSMutableDictionary FromObjectsAndKeys(object[] objects, object[] keys, IntPtr count);
static member FromObjectsAndKeys : obj[] * obj[] * nativeint -> Foundation.NSMutableDictionary

Parameters

objects
Object[]

The array of objects to add to the dictionary.

keys
Object[]

The array of keys for the objects.

count
IntPtr

nativeint

The number of elements to copy from the arrays.

Returns

A new mutable dictionary containing the specified objects and keys.

Exceptions

Thrown when objects or keys is null.

Thrown when count is invalid.

Applies to