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
)

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.

Exception Condition
ArgumentException

Either or both components of item are null.

.NET Framework
Available since 4.0
Return to top
Show: