Share via


ModelMemberCollection<TItemType, TKeyType>.Find Method (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 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

Parameters

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

Return Value

Type: TItemType
A TItemType with the specified key. If not found, this method returns nulla null reference (Nothing in Visual Basic).

Exceptions

Exception Condition
ArgumentNullException

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

.NET Framework Security

See Also

Reference

ModelMemberCollection<TItemType, TKeyType> Class

Find Overload

Microsoft.Windows.Design.Model Namespace

Other Resources

WPF Designer Extensibility