Returns the value associated with a given key.
Original signature is '- (id)objectForKey:(id)aKey'
Available in Mac OS X v10.0 and later.

C# | Visual Basic | Visual C++ |
public virtual T ObjectForKey<T>( Id aKey ) where T : IManagedWrapper
Public Overridable Function ObjectForKey(Of T As IManagedWrapper) ( _ aKey As Id _ ) As T
public: generic<typename T> where T : IManagedWrapper virtual T ObjectForKey( Id^ aKey )

- T
- The parametric type

- aKey (Id)
- The key for which to return the corresponding value.

The value associated with aKey, or nil if no value is associated with aKey.

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)