DbParameterCollection.SetParameter Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the specified parameter to the specified value.
Overloads
SetParameter(Int32, DbParameter) |
Sets the DbParameter object at the specified index to a new value. |
SetParameter(String, DbParameter) |
Sets the DbParameter object with the specified name to a new value. |
SetParameter(Int32, DbParameter)
- Source:
- DbParameterCollection.cs
- Source:
- DbParameterCollection.cs
- Source:
- DbParameterCollection.cs
Sets the DbParameter object at the specified index to a new value.
protected:
abstract void SetParameter(int index, System::Data::Common::DbParameter ^ value);
protected abstract void SetParameter (int index, System.Data.Common.DbParameter value);
abstract member SetParameter : int * System.Data.Common.DbParameter -> unit
Protected MustOverride Sub SetParameter (index As Integer, value As DbParameter)
Parameters
- index
- Int32
The index where the DbParameter object is located.
- value
- DbParameter
The new DbParameter value.
See also
Applies to
SetParameter(String, DbParameter)
- Source:
- DbParameterCollection.cs
- Source:
- DbParameterCollection.cs
- Source:
- DbParameterCollection.cs
Sets the DbParameter object with the specified name to a new value.
protected:
abstract void SetParameter(System::String ^ parameterName, System::Data::Common::DbParameter ^ value);
protected abstract void SetParameter (string parameterName, System.Data.Common.DbParameter value);
abstract member SetParameter : string * System.Data.Common.DbParameter -> unit
Protected MustOverride Sub SetParameter (parameterName As String, value As DbParameter)
Parameters
- parameterName
- String
The name of the DbParameter object in the collection.
- value
- DbParameter
The new DbParameter value.