'Declaration Public Function ExecuteCommand( _ ByVal command As String, _ ByVal ParamArray parameters() As Object _ ) As Integer
public int ExecuteCommand( string command, params object[] parameters )
Parameters
- command
- The SQL command to be executed.
- parameters
- The array of parameters to be passed to the command. Note the following behavior:
- If the number of objects in the array is less than the highest number identified in the command string, an exception is thrown.
- If the array contains objects that are not referenced in the command string, no exception is thrown.
- If any one of the parameters is null, it is converted to DBNull.Value.
Return Value
An int representing the number of rows modified by the executed command.