Returns the configuration item whose primary key property matched the specified value.
[C#] In C#, this member is the indexer for the IConfigCollection class.
[Visual Basic] Overloads Default ReadOnly Property Item( _ ByVal Key As String _ ) As IConfigItem [C#] IConfigItem this[ string Key ] {get;} [C++] IConfigItem* get_Item( String* Key ) = 0; [JScript] abstract returnValue = IConfigCollectionObject.Item(Key); -or- abstract returnValue = IConfigCollectionObject(Key);
[JScript] In JScript, you can use the default indexed properties defined by a type, but you cannot explicitly define your own. However, specifying the expando attribute on a class automatically provides a default indexed Item property whose type is Object and whose index type is String.
Can only be used for ConfigTypes that have a single primary key property. For ConfigTypes with multi-valued primary keys use FindByKey
IConfigCollection Interface | IConfigCollection Members | System.Configuration Namespace | IConfigCollection.Item Overload List