Gets or sets the value associated with the specified key.
Syntax
Visual Basic (Declaration) | |
---|
Public Overrides Default Property Item( _
ByVal keyword As String _
) As Object
|
Parameters
- keyword
- The key of the item to get or set.
Property Value
The value associated with the specified key. If the specified key is not found, trying to get it returns a null reference (Nothing in Visual Basic), and trying to set it creates a new element using the specified key.Passing a null (Nothing in Visual Basic) key throws an
System.ArgumentNullException. Assigning a null value removes the key/value pair.
Exceptions
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also