Gets the ADOParameter with the specified name.
[C#] In C#, this member is the indexer for the ADOParameters class.
[Visual Basic] Overloads Overridable Public Default Property Item( _ ByVal parameterName As String _ ) As ADOParameter [C#] public ADOParameter this[ string parameterName ] {virtual get; virtual set;} [C++] public: __property virtual ADOParameter* get_Item( String* parameterName ); public: __property virtual void set_Item( String* parameterName, ADOParameter* ); [JScript] returnValue = ADOParametersObject.Item(parameterName); ADOParametersObject.Item(parameterName) = returnValue; -or- returnValue = ADOParametersObject(parameterName); ADOParametersObject(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 Item property whose type is Object and whose index type is String.
The ADOParameter with the specified name.
Exception Type | Condition |
---|---|
ParametersSourceIndex | The name specified does not exist. |
ADOParameters Class | ADOParameters Members | System.Data.ADO Namespace | ADOParameters.Item Overload List