SqlCommand.UpdatedRowSource 属性
定义
获取或设置命令结果在 DataRow 由的 Update 方法使用时应用于的方式 DbDataAdapter 。Gets or sets how command results are applied to the DataRow when used by the Update method of the DbDataAdapter.
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 值为, 除非自动生成命令 (如) 的情况 SqlCommandBuilder ,在这种情况下,默认值为 None。The default UpdateRowSource value is Both unless the command is automatically generated (as in the case of the SqlCommandBuilder), in which case the default is None.
有关使用 UpdatedRowSource 属性的详细信息,请参阅 DataAdapter Parameters。For more information about using the UpdatedRowSource property, see DataAdapter Parameters.