Sets the value of a parameter in a collection irrespective of case-sensitivity and whether the parameter is a simple
value or IDbDataParameter object
Namespace:
DbNetLink.DataAssembly: DbNetLink.DbNetData (in DbNetLink.DbNetData.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
public void SetParamValue( ListDictionary Params, string ParamName, Object ParamValue ) |
| Visual Basic (Declaration) |
|---|
Public Sub SetParamValue ( _ Params As ListDictionary, _ ParamName As String, _ ParamValue As Object _ ) |
| Visual C++ |
|---|
public: void SetParamValue( ListDictionary^ Params, String^ ParamName, Object^ ParamValue ) |
Parameters
- Params
- Type: System.Collections.Specialized..::.ListDictionary
The parameter collection
- ParamName
- Type: System..::.String
The name of the parameter
- ParamValue
- Type: System..::.Object
The parameter value to assign
Examples
DbNetData Db = new DbNetData( ConfigurationManager.ConnectionStrings["nwind"] ); Db.Open(); ListDictionary Params = Db.DeriveParameters("CustOrderHist"); Db.SetParamValue( Params, "customerid", Customers.SelectedValue ); Db.ExecuteQuery( "CustOrderHist", Params ); ResultsGridView.DataSource = Db.Reader; ResultsGridView.DataBind(); Db.Close();