OleDbCommand.UpdatedRowSource 属性
定义
获取或设置命令结果在由 DataRow 的 Update 方法使用时如何应用于 OleDbDataAdapter。Gets or sets how command results are applied to the DataRow when used by the Update method of the OleDbDataAdapter.
public:
virtual property System::Data::UpdateRowSource UpdatedRowSource { System::Data::UpdateRowSource get(); void set(System::Data::UpdateRowSource value); };
public:
property System::Data::UpdateRowSource UpdatedRowSource { System::Data::UpdateRowSource get(); void set(System::Data::UpdateRowSource value); };
public override System.Data.UpdateRowSource UpdatedRowSource { get; set; }
[System.Data.DataSysDescription("DbCommand_UpdatedRowSource")]
public System.Data.UpdateRowSource UpdatedRowSource { get; set; }
member this.UpdatedRowSource : System.Data.UpdateRowSource with get, set
[<System.Data.DataSysDescription("DbCommand_UpdatedRowSource")>]
member this.UpdatedRowSource : System.Data.UpdateRowSource with get, set
Public Overrides Property UpdatedRowSource As UpdateRowSource
Public Property UpdatedRowSource As UpdateRowSource
属性值
UpdateRowSource 值之一。One of the UpdateRowSource values.
实现
- 属性
例外
输入的值不是 UpdateRowSource 值之一。The value entered was not one of the UpdateRowSource values.
注解
默认 UpdatedRowSource 值为,除非自动生成命令 (与 OleDbCommandBuilder) 一样,在这种情况下,默认值为 None。The default UpdatedRowSource value is Both unless the command is automatically generated (as with the OleDbCommandBuilder), in which case the default is None.
有关如何使用属性的详细信息 UpdatedRowSource ,请参阅 DataAdapter Parameters。For more information about how to use the UpdatedRowSource property, see DataAdapter Parameters.