Udostępnij za pośrednictwem


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

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 ( _
    name As String _
) As TItemType
    Get
public TItemType this[
    string name
] { get; }
public:
property TItemType default[String^ name] {
    TItemType get (String^ name);
}
member Item : 'TItemType
JScript does not support indexed properties.

Parameters

Property Value

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

Exceptions

Exception Condition
ArgumentNullException

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

ArgumentException

name 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