ModelMemberCollection<TItemType, TKeyType>.Item Property (TKeyType)

Searches the collection for an item with the specified key and returns it if it is found.

Namespace:  Microsoft.Windows.Design.Model
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    value As TKeyType _
) As TItemType
    Get
public TItemType this[
    TKeyType value
] { get; }
public:
property TItemType default[TKeyType value] {
    TItemType get (TKeyType value);
}
member Item : 'TItemType
JScript does not support indexed properties.

Parameters

  • value
    Type: TKeyType
    The key of the item to find.

Property Value

Type: TItemType
A TItemType with the specified key. If not found, this property throws an exception.

Exceptions

Exception Condition
ArgumentNullException

value is nulla null reference (Nothing in Visual Basic).

ArgumentException

value is not found.

.NET Framework Security

See Also

Reference

ModelMemberCollection<TItemType, TKeyType> Class

Item Overload

Microsoft.Windows.Design.Model Namespace

Other Resources

WPF Designer Extensibility