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 属性设置为存储过程的名称。 如果存储过程名称包含任何特殊字符,则用户可能需要使用转义字符语法。 当你调用 执行方法之一 时,命令会调用这个存储过程。