MonobjcMonobjc Documented Class Library
DictionaryWithObjectForKey Method (anObject, aKey)
NamespacesMonobjc.FoundationNSDictionaryDictionaryWithObjectForKey(Id, Id)

Creates and returns a dictionary containing a given key and value.

Original signature is '+ (id)dictionaryWithObject:(id)anObject forKey:(id)aKey'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSDictionary DictionaryWithObjectForKey(
	Id anObject,
	Id aKey
)
Public Shared Function DictionaryWithObjectForKey ( _
	anObject As Id, _
	aKey As Id _
) As NSDictionary
public:
static NSDictionary^ DictionaryWithObjectForKey(
	Id^ anObject, 
	Id^ aKey
)
Parameters
anObject (Id)
The value corresponding to aKey.
aKey (Id)
The key for anObject.
Return Value
A new dictionary containing a single object, anObject, for a single key, aKey.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)