NSDictionary.FromObjectsAndKeys Method
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.
Overloads
| Name | Description |
|---|---|
| FromObjectsAndKeys(NSObject[], NSObject[]) |
Creates a dictionary from a set of values and keys. |
| FromObjectsAndKeys(Object[], Object[]) |
Creates a dictionary from a set of values and keys. |
| FromObjectsAndKeys(NSObject[], NSObject[], IntPtr) |
Creates a dictionary from a set of values and keys. |
| FromObjectsAndKeys(Object[], Object[], IntPtr) |
Creates a dictionary from a set of values and keys. |
FromObjectsAndKeys(NSObject[], NSObject[])
Creates a dictionary from a set of values and keys.
public static Foundation.NSDictionary FromObjectsAndKeys(Foundation.NSObject[] objects, Foundation.NSObject[] keys);
public static Foundation.NSDictionary FromObjectsAndKeys(Foundation.NSObject?[] objects, Foundation.NSObject[] keys);
static member FromObjectsAndKeys : Foundation.NSObject[] * Foundation.NSObject[] -> Foundation.NSDictionary
Parameters
- keys
- NSObject[]
Array of keys for the dictionary.
Returns
A new NSDictionary containing the specified key-value pairs.
Applies to
FromObjectsAndKeys(Object[], Object[])
Creates a dictionary from a set of values and keys.
public static Foundation.NSDictionary FromObjectsAndKeys(object[] objects, object[] keys);
static member FromObjectsAndKeys : obj[] * obj[] -> Foundation.NSDictionary
Parameters
- objects
- Object[]
Array of values for the dictionary.
- keys
- Object[]
Array of keys for the dictionary.
Returns
A new NSDictionary containing the specified key-value pairs.
Remarks
The keys and values will first be boxed into NSObjects using FromObject(Object).
Applies to
FromObjectsAndKeys(NSObject[], NSObject[], IntPtr)
Creates a dictionary from a set of values and keys.
public static Foundation.NSDictionary FromObjectsAndKeys(Foundation.NSObject[] objects, Foundation.NSObject[] keys, IntPtr count);
public static Foundation.NSDictionary FromObjectsAndKeys(Foundation.NSObject?[] objects, Foundation.NSObject[] keys, IntPtr count);
static member FromObjectsAndKeys : Foundation.NSObject[] * Foundation.NSObject[] * nativeint -> Foundation.NSDictionary
Parameters
- keys
- NSObject[]
Array of keys for the dictionary.
- count
-
IntPtr
nativeint
Number of items to use in the creation; the number must be less than or equal to the number of elements in both arrays.
Returns
A new NSDictionary containing the specified key-value pairs.
Applies to
FromObjectsAndKeys(Object[], Object[], IntPtr)
Creates a dictionary from a set of values and keys.
public static Foundation.NSDictionary FromObjectsAndKeys(object[] objects, object[] keys, IntPtr count);
static member FromObjectsAndKeys : obj[] * obj[] * nativeint -> Foundation.NSDictionary
Parameters
- objects
- Object[]
Array of values for the dictionary.
- keys
- Object[]
Array of keys for the dictionary.
- count
-
IntPtr
nativeint
Number of items to use in the creation; the number must be less than or equal to the number of elements in both arrays.
Returns
A new NSDictionary containing the specified key-value pairs.
Remarks
The keys and values will first be boxed into NSObjects using FromObject(Object).