Export (0) Print
Expand All

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

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.

Implements

ICollection<T>.Add(T)

ExceptionCondition
ArgumentException

Either or both components of item are null.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft