Export (0) Print
Expand All

NameScope.Item Property

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.

Implements

IDictionary<TKey, TValue>.Item

ExceptionCondition
ArgumentNullException

key is provided as null.

-or-

value is provided as null for a set operation.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft