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
- name
Type: System.String
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 | name is nulla null reference (Nothing in Visual Basic). |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
ModelMemberCollection<TItemType, TKeyType> Class
Microsoft.Windows.Design.Model Namespace