Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

NameScope.Add Method (KeyValuePair<String, Object>)

.NET Framework (current version)

Adds an item to the collection.

Namespace:   System.Windows
Assembly:  WindowsBase (in WindowsBase.dll)

public void Add(
	KeyValuePair<string, object> 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.

Exception Condition

Either or both components of item are null.

.NET Framework
Available since 4.0
Return to top
© 2017 Microsoft