AddWithValue Method
Adds a new SqlCeParameter to the SqlCeParameterCollection and sets its value.
Namespace: System.Data.SqlServerCe
Assembly: System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)
Syntax
'Declaration
Public Function AddWithValue ( _
parameterName As String, _
value As Object _
) As SqlCeParameter
'Usage
Dim instance As SqlCeParameterCollection
Dim parameterName As String
Dim value As Object
Dim returnValue As SqlCeParameter
returnValue = instance.AddWithValue(parameterName, _
value)
public SqlCeParameter AddWithValue(
string parameterName,
Object value
)
public:
SqlCeParameter^ AddWithValue(
String^ parameterName,
Object^ value
)
member AddWithValue :
parameterName:string *
value:Object -> SqlCeParameter
public function AddWithValue(
parameterName : String,
value : Object
) : SqlCeParameter
Parameters
- parameterName
Type: System. . :: . .String
Name of the SqlCeParameter.
- value
Type: System. . :: . .Object
Value of the parameterName.
Return Value
Type: System.Data.SqlServerCe. . :: . .SqlCeParameter
See Also
Reference
SqlCeParameterCollection Class