MonobjcMonobjc Documented Class Library
Add Method (key, value)
NamespacesMonobjc.FoundationNSDictionaryAdd(Id, Id)
Adds an element with the provided key and value to the IDictionary<(Of <(<'TKey, TValue>)>)>.
Declaration Syntax
C#Visual BasicVisual C++
public virtual void Add(
	Id key,
	Id value
)
Public Overridable Sub Add ( _
	key As Id, _
	value As Id _
)
public:
virtual void Add(
	Id^ key, 
	Id^ value
)
Parameters
key (Id)
The object to use as the key of the element to add.
value (Id)
The object to use as the value of the element to add.
Exceptions
ExceptionCondition
NotSupportedExceptionThe IDictionary<(Of <(<'TKey, TValue>)>)> is read-only.
ArgumentExceptionAn element with the same key already exists in the IDictionary<(Of <(<'TKey, TValue>)>)>.
ArgumentNullExceptionkey is null.
NotSupportedExceptionThis instance is immutable
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)