IDbCommand.CommandType 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
指示或指定屬性如何 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 為儲存程序的名稱。 如果儲存程序名稱包含特殊字元,使用者可能需要使用跳脫字元語法。 當你呼叫其中一個 執行 方法時,這個指令會呼叫這個儲存程序。