SqliteParameterCollection.Add 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.
Overloads
Add(SqliteParameter) |
Adds a parameter to the collection. |
Add(Object) |
Adds a parameter to the collection. |
Add(String, SqliteType) |
Adds a parameter to the collection. |
Add(String, SqliteType, Int32) |
Adds a parameter to the collection. |
Add(String, SqliteType, Int32, String) |
Adds a parameter to the collection. |
Add(SqliteParameter)
Adds a parameter to the collection.
public virtual Microsoft.Data.Sqlite.SqliteParameter Add (Microsoft.Data.Sqlite.SqliteParameter value);
override this.Add : Microsoft.Data.Sqlite.SqliteParameter -> Microsoft.Data.Sqlite.SqliteParameter
Public Overridable Function Add (value As SqliteParameter) As SqliteParameter
Parameters
- value
- SqliteParameter
The parameter to add.
Returns
The parameter that was added.
Applies to
Add(Object)
Adds a parameter to the collection.
public override int Add (object value);
override this.Add : obj -> int
Public Overrides Function Add (value As Object) As Integer
Parameters
- value
- Object
The parameter to add. Must be a SqliteParameter.
Returns
The zero-based index of the parameter that was added.
Applies to
Add(String, SqliteType)
Adds a parameter to the collection.
public virtual Microsoft.Data.Sqlite.SqliteParameter Add (string parameterName, Microsoft.Data.Sqlite.SqliteType type);
public virtual Microsoft.Data.Sqlite.SqliteParameter Add (string? parameterName, Microsoft.Data.Sqlite.SqliteType type);
override this.Add : string * Microsoft.Data.Sqlite.SqliteType -> Microsoft.Data.Sqlite.SqliteParameter
Public Overridable Function Add (parameterName As String, type As SqliteType) As SqliteParameter
Parameters
- parameterName
- String
The name of the parameter.
- type
- SqliteType
The SQLite type of the parameter.
Returns
The parameter that was added.
Applies to
Add(String, SqliteType, Int32)
Adds a parameter to the collection.
public virtual Microsoft.Data.Sqlite.SqliteParameter Add (string parameterName, Microsoft.Data.Sqlite.SqliteType type, int size);
public virtual Microsoft.Data.Sqlite.SqliteParameter Add (string? parameterName, Microsoft.Data.Sqlite.SqliteType type, int size);
override this.Add : string * Microsoft.Data.Sqlite.SqliteType * int -> Microsoft.Data.Sqlite.SqliteParameter
Public Overridable Function Add (parameterName As String, type As SqliteType, size As Integer) As SqliteParameter
Parameters
- parameterName
- String
The name of the parameter.
- type
- SqliteType
The SQLite type of the parameter.
- size
- Int32
The maximum size, in bytes, of the parameter.
Returns
The parameter that was added.
Applies to
Add(String, SqliteType, Int32, String)
Adds a parameter to the collection.
public virtual Microsoft.Data.Sqlite.SqliteParameter Add (string parameterName, Microsoft.Data.Sqlite.SqliteType type, int size, string sourceColumn);
public virtual Microsoft.Data.Sqlite.SqliteParameter Add (string? parameterName, Microsoft.Data.Sqlite.SqliteType type, int size, string? sourceColumn);
override this.Add : string * Microsoft.Data.Sqlite.SqliteType * int * string -> Microsoft.Data.Sqlite.SqliteParameter
Public Overridable Function Add (parameterName As String, type As SqliteType, size As Integer, sourceColumn As String) As SqliteParameter
Parameters
- parameterName
- String
The name of the parameter.
- type
- SqliteType
The SQLite type of the parameter.
- size
- Int32
The maximum size, in bytes, of the parameter.
- sourceColumn
- String
The source column used for loading the value of the parameter. Can be null.
Returns
The parameter that was added.