SqlDataSource.UpdateCommandType 属性

定义

获取或设置一个值,该值指示 UpdateCommand 属性中的文本是 SQL 语句还是存储过程的名称。Gets or sets a value indicating whether the text in the UpdateCommand property is an SQL statement or the name of a stored procedure.

public:
 property System::Web::UI::WebControls::SqlDataSourceCommandType UpdateCommandType { System::Web::UI::WebControls::SqlDataSourceCommandType get(); void set(System::Web::UI::WebControls::SqlDataSourceCommandType value); };
public System.Web.UI.WebControls.SqlDataSourceCommandType UpdateCommandType { get; set; }
member this.UpdateCommandType : System.Web.UI.WebControls.SqlDataSourceCommandType with get, set
Public Property UpdateCommandType As SqlDataSourceCommandType

属性值

SqlDataSourceCommandType 值之一。One of the SqlDataSourceCommandType values. 默认为 Text 值。The default is the Text value.

注解

属性委托SqlDataSourceView UpdateCommandType给与SqlDataSource控件相关联的对象的属性。 UpdateCommandTypeThe UpdateCommandType property delegates to the UpdateCommandType property of the SqlDataSourceView object that is associated with the SqlDataSource control.

适用于

另请参阅