NameScope.Item Property (String)

.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.

Gets or sets the item with the specified key.

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

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

Parameters

key
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
ArgumentNullException

key is provided as null.

-or-

value is provided as null for a set operation.

.NET Framework
Available since 4.0
Return to top
Show: