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

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: