NameScope.Item Property (String)

.NET Framework (current version)

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

Gets or sets the item with the specified key.

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

public object this[
	string key
] { get; set; }


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.

Exception Condition

key is provided as null.


value is provided as null for a set operation.

.NET Framework
Available since 4.0
Return to top