Gets the SQLParameter with the specified name.
[C#] In C#, this member is the indexer for the SQLParameters class.
[Visual Basic] Overloads Public Default Property Item( _ ByVal parameterName As String _ ) As SQLParameter [C#] public SQLParameter this[ string parameterName ] {get; set;} [C++] public: __property SQLParameter* get_Item( String* parameterName ); public: __property void set_Item( String* parameterName, SQLParameter* ); [JScript] returnValue = SQLParametersObject.Item(parameterName); SQLParametersObject.Item(parameterName) = returnValue; -or- returnValue = SQLParametersObject(parameterName); SQLParametersObject(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 SQLParameter with the specified name or null if the parameter is not found.
Exception Type | Condition |
---|---|
ParametersSourceIndex | The specified name does not exist. |
SQLParameters Class | SQLParameters Members | System.Data.SQL Namespace | SQLParameters.Item Overload List