ModelMemberCollection<TItemType, TKeyType>.Find 方法 (TKeyType)

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

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

语法

声明
Public Function Find ( _
    value As TKeyType _
) As TItemType
public TItemType Find(
    TKeyType value
)
public:
TItemType Find(
    TKeyType value
)
member Find : 
        value:'TKeyType -> 'TItemType 
public function Find(
    value : TKeyType
) : TItemType

参数

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

返回值

类型:TItemType
具有指定键的 TItemType。如果未找到,此方法将返回 nullnull 引用(在 Visual Basic 中为 Nothing)。

异常

异常 条件
ArgumentNullException

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

.NET Framework 安全性

请参见

参考

ModelMemberCollection<TItemType, TKeyType> 类

Find 重载

Microsoft.Windows.Design.Model 命名空间

其他资源

WPF 设计器扩展性