MySQL Connector/Net
MySqlCommandCommandType Property |
Gets or sets a value indicating how the CommandText property is to be interpreted.
Namespace: MySql.Data.MySqlClient
Assembly: MySql.Data (in MySql.Data.dll) Version: 6.9.9

public override CommandType CommandType { get; set; }
Public Overrides Property CommandType As CommandType Get Set
public: virtual property CommandType CommandType { CommandType get () override; void set (CommandType value) override; }
abstract CommandType : CommandType with get, set override CommandType : CommandType with get, set
Property Value
Type: CommandTypeOne of the CommandType values. The default is Text.
Implements
IDbCommandCommandType
When you set the CommandType property to StoredProcedure, you should set the CommandText property to the name of the stored procedure. The command executes this stored procedure when you call one of the Execute methods.

The following example creates a MySqlCommand and sets some of its properties.
public void CreateMySqlCommand() { MySqlCommand myCommand = new MySqlCommand(); myCommand.CommandType = CommandType.Text; }
Public Sub CreateMySqlCommand() Dim myCommand As New MySqlCommand() myCommand.CommandType = CommandType.Text End Sub
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
