IDbCommand.UpdatedRowSource 属性

定义

获取或设置命令结果在由 DataRowUpdate(DataSet) 方法使用时应用于 DbDataAdapter 的方式。Gets or sets how command results are applied to the DataRow when used by the Update(DataSet) method of a DbDataAdapter.

public:
 property System::Data::UpdateRowSource UpdatedRowSource { System::Data::UpdateRowSource get(); void set(System::Data::UpdateRowSource value); };
public System.Data.UpdateRowSource UpdatedRowSource { get; set; }
member this.UpdatedRowSource : System.Data.UpdateRowSource with get, set
Public Property UpdatedRowSource As UpdateRowSource

属性值

UpdateRowSource 值之一。One of the UpdateRowSource values. 除非自动生成该命令,否则默认值为 BothThe default is Both unless the command is automatically generated. 如果自动生成该命令,默认值为 NoneThen the default is None.

例外

输入的值不是 UpdateRowSource 值之一。The value entered was not one of the UpdateRowSource values.

适用于