ModelMemberCollection<TItemType, TKeyType>.Item Property (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 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 does not support indexed properties.
Parameters
- name
Type: System.String
The key of the item to find.
Property Value
Type: TItemType
A TItemType with the specified key. If not found, this property throws an exception.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | name is nulla null reference (Nothing in Visual Basic). |
ArgumentException | name is not found. |
.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