Share via


IDbCommand.CommandType Properti

Definisi

Menunjukkan atau menentukan bagaimana properti ditafsirkan CommandText .

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

Nilai Properti

Salah CommandType satu nilai. Default adalah Text.

Keterangan

Saat Anda mengatur properti ke CommandTypeStoredProcedure, Anda harus mengatur CommandText properti ke nama prosedur tersimpan. Perintah menjalankan prosedur tersimpan ini saat Anda memanggil salah satu metode Jalankan.

Berlaku untuk