MonobjcMonobjc Documented Class Library
ObjectForKey<(Of <(<'T>)>)> Method (aKey)
NamespacesMonobjc.FoundationNSDictionaryObjectForKey<(Of <<'(T>)>>)(Id)

Returns the value associated with a given key.

Original signature is '- (id)objectForKey:(id)aKey'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual 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
)
Generic Template Parameters
T
The parametric type
Parameters
aKey (Id)
The key for which to return the corresponding value.
Return Value
The value associated with aKey, or nil if no value is associated with 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)