Share via


SqliteParameterCollection.AddWithValue(String, Object) Method

Definition

Adds a parameter to the collection.

public virtual Microsoft.Data.Sqlite.SqliteParameter AddWithValue (string parameterName, object value);
public virtual Microsoft.Data.Sqlite.SqliteParameter AddWithValue (string? parameterName, object? value);
abstract member AddWithValue : string * obj -> Microsoft.Data.Sqlite.SqliteParameter
override this.AddWithValue : string * obj -> Microsoft.Data.Sqlite.SqliteParameter
Public Overridable Function AddWithValue (parameterName As String, value As Object) As SqliteParameter

Parameters

parameterName
String

The name of the parameter.

value
Object

The value of the parameter. Can be null.

Returns

The parameter that was added.

Applies to