SqlParameterCollection::Item Property (String^)
.NET Framework (current version)
Gets the SqlParameter with the specified name.
Assembly: System.Data (in System.Data.dll)
public: [BrowsableAttribute(false)] property SqlParameter^ default[ String^ parameterName ] { SqlParameter^ get(String^ parameterName); void set(String^ parameterName, SqlParameter^ value); }
Parameters
- parameterName
-
Type:
System::String^
The name of the parameter to retrieve.
| Exception | Condition |
|---|---|
| IndexOutOfRangeException | The specified parameterName is not valid. |
The parameterName is used to look up the index value in the underlying SqlParameterCollection. If the parameterName is not valid, an IndexOutOfRangeException will be thrown.
.NET Framework
Available since 1.1
Available since 1.1
Show: