This documentation is archived and is not being maintained.

IDataParameterCollection.Item Property

Gets the parameter at the specified index.

[C#] In C#, this property is the indexer for the IDataParameterCollection class.

[Visual Basic]
Default Property Item( _
   ByVal parameterName As String _
) As Object
object this[
   string parameterName
] {get; set;}
__property Object* get_Item(
 String* parameterName
__property void set_Item(
 String* parameterName,
returnValue = IDataParameterCollectionObject.Item(parameterName);
IDataParameterCollectionObject.Item(parameterName) = returnValue;
returnValue = IDataParameterCollectionObject(parameterName);
IDataParameterCollectionObject(parameterName) = returnValue;

[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 property whose type is Object and whose index type is String.

Arguments [JScript]

The name of the parameter to retrieve.

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

The name of the parameter to retrieve.

Property Value

An Object at the specified index.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

IDataParameterCollection Interface | IDataParameterCollection Members | System.Data Namespace