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

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

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

语法

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

参数

属性值

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

异常

异常 条件
ArgumentNullException

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

ArgumentException

未找到 name。

.NET Framework 安全性

请参见

参考

ModelMemberCollection<TItemType, TKeyType> 类

Item 重载

Microsoft.Windows.Design.Model 命名空间

其他资源

WPF 设计器扩展性