CreateCommand method

Creates and initializes a ULCommand object associated with this connection and its current transaction. You can use the properties of the ULCommand to control its behavior.

Syntax
Visual Basic
Public Function CreateCommand() As ULCommand
C#
public ULCommand CreateCommand();
Return value

A new ULCommand object.

Remarks

You must set the ULCommand.CommandText before the command can be executed.

This is the strongly-typed version of System.Data.IDbConnection.CreateCommand and System.Data.Common.DbConnection.CreateCommand().

See also