ModelMemberCollection<TItemType, TKeyType>.Item 属性 (TKeyType)

在集合中搜索具有指定键的项,并在找到时将它返回。

命名空间:  Microsoft.Windows.Design.Model
程序集:  Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)

语法

声明
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 不支持索引属性。

参数

  • value
    类型:TKeyType
    要查找的项的键。

属性值

类型:TItemType
具有指定键的 TItemType。如果未找到,此属性将引发异常。

异常

异常 条件
ArgumentNullException

value 为 nullnull 引用(在 Visual Basic 中为 Nothing)。

ArgumentException

未找到 value。

.NET Framework 安全性

请参见

参考

ModelMemberCollection<TItemType, TKeyType> 类

Item 重载

Microsoft.Windows.Design.Model 命名空间

其他资源

WPF 设计器扩展性