IDbCommand.CommandType 屬性

定義

指示或指定屬性如何 CommandText 被解讀(如文字、儲存程序等)。

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

屬性值

這是其中一項 CommandType 價值。 預設值為 Text

備註

當屬性 CommandType 設定為 StoredProcedure時,將屬性設定 CommandText 為儲存程序的名稱。 如果儲存程序名稱包含特殊字元,使用者可能需要使用跳脫字元語法。 當你呼叫其中一個 執行 方法時,這個指令會呼叫這個儲存程序。

適用於