Export (0) Print
Expand All

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
[C#]
object this[
   string parameterName
] {get; set;}
[C++]
__property Object* get_Item(
 String* parameterName
);
__property void set_Item(
 String* parameterName,
   Object*
);
[JScript]
returnValue = IDataParameterCollectionObject.Item(parameterName);
IDataParameterCollectionObject.Item(parameterName) = returnValue;
-or-
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]

parameterName
The name of the parameter to retrieve.

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

parameterName
The name of the parameter to retrieve.

Property Value

An Object at the specified index.

Requirements

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

Show:
© 2014 Microsoft