NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

IConfigCollection.Item (String)

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.

Arguments [JScript]

Key
[To be supplied.]

Parameters [Visual Basic, C#, C++]

Key
[To be supplied.]

Remarks

Can only be used for ConfigTypes that have a single primary key property. For ConfigTypes with multi-valued primary keys use FindByKey

See Also

IConfigCollection Interface | IConfigCollection Members | System.Configuration Namespace | IConfigCollection.Item Overload List