DbParameterCollection.SetParameter DbParameterCollection.SetParameter DbParameterCollection.SetParameter DbParameterCollection.SetParameter Method

Definition

Sets the specified parameter to the specified value.

Overloads

SetParameter(Int32, DbParameter) SetParameter(Int32, DbParameter) SetParameter(Int32, DbParameter) SetParameter(Int32, DbParameter)

Sets the DbParameter object at the specified index to a new value.

SetParameter(String, DbParameter) SetParameter(String, DbParameter) SetParameter(String, DbParameter) SetParameter(String, DbParameter)

Sets the DbParameter object with the specified name to a new value.

SetParameter(Int32, DbParameter) SetParameter(Int32, DbParameter) SetParameter(Int32, DbParameter) SetParameter(Int32, DbParameter)

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 Int32 Int32 Int32

The index where the DbParameter object is located.

See also

SetParameter(String, DbParameter) SetParameter(String, DbParameter) SetParameter(String, DbParameter) SetParameter(String, DbParameter)

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 String String String

The name of the DbParameter object in the collection.

See also

Applies to