Share via


ModelMemberCollection<TItemType, TKeyType>.Find Method (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 Function Find ( _
    name As String _
) As TItemType
public TItemType Find(
    string name
)
public:
TItemType Find(
    String^ name
)
member Find : 
        name:string -> 'TItemType 
public function Find(
    name : String
) : TItemType

Parameters

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

name 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