NameScope::Item Property (String^)
.NET Framework (current version)
Gets or sets the item with the specified key.
Assembly: WindowsBase (in WindowsBase.dll)
public: property Object^ default[ String^ key ] { virtual Object^ get(String^ key) sealed; virtual void set(String^ key, Object^ value) sealed; }
Parameters
- key
-
Type:
System::String^
The string name for the XAML name mapping to get or set.
Property Value
Type: System::Object^The value of the object mapped by the XAML name provided as key.
Implements
IDictionary<TKey, TValue>::Item[TKey]| Exception | Condition |
|---|---|
| ArgumentNullException | key is provided as null. -or- value is provided as null for a set operation. |
.NET Framework
Available since 4.0
Available since 4.0
Show: