NameScope::Add Method (KeyValuePair<String^, Object^>)
.NET Framework (current version)
Adds an item to the collection.
Assembly: WindowsBase (in WindowsBase.dll)
Parameters
- item
-
Type:
System.Collections.Generic::KeyValuePair<String^, Object^>
A KeyValuePair<TKey, TValue> (key is String, value is Object) that represents the name mapping to add to the XAML namescope.
Implements
ICollection<T>::Add(T)| Exception | Condition |
|---|---|
| ArgumentException | Either or both components of item are null. |
.NET Framework
Available since 4.0
Available since 4.0
Show: