ULCommand(String, ULConnection) constructor

Initializes a ULCommand object with the specified command text and connection.

Syntax
Visual Basic
Public Sub New( _
   ByVal cmdText As String, _
   ByVal connection As ULConnection _
)
C#
public  ULCommand(
   string  cmdText,
   ULConnection connection
);
Parameters
  • cmdText   The text of the SQL statement or name of the table when the ULCommand.CommandType is System.Data.CommandType.TableDirect. For parameterized statements, use a question mark (?) placeholder to pass parameters.

  • connection   The ULConnection object representing the current connection.

Remarks

The ULCommand object may need to have the ULCommand.Transaction set before a statement can be executed.

See also