The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
SqlParameterCollection::Add Method (SqlParameter^)
.NET Framework (current version)
Adds the specified SqlParameter object to the SqlParameterCollection.
Assembly: System.Data (in System.Data.dll)
Parameters
- value
-
Type:
System.Data.SqlClient::SqlParameter^
The SqlParameter to add to the collection.
| Exception | Condition |
|---|---|
| ArgumentException | The SqlParameter specified in the value parameter is already added to this or another SqlParameterCollection. |
| InvalidCastException | The parameter passed was not a SqlParameter. |
| ArgumentNullException | The value parameter is null. |
.NET Framework
Available since 1.1
Available since 1.1
Show: