Condividi tramite


IDbCommand.CommandType Proprietà

Definizione

Indica o specifica la modalità di interpretazione della CommandText proprietà.

public:
 property System::Data::CommandType CommandType { System::Data::CommandType get(); void set(System::Data::CommandType value); };
public System.Data.CommandType CommandType { get; set; }
member this.CommandType : System.Data.CommandType with get, set
Public Property CommandType As CommandType

Valore della proprietà

Uno dei CommandType valori. Il valore predefinito è Text.

Commenti

Quando si imposta la CommandType proprietà su StoredProcedure, è necessario impostare la CommandText proprietà sul nome della stored procedure. Il comando esegue questa stored procedure quando si chiama uno dei metodi Execute.

Si applica a