Share via


SqlCommand.UpdatedRowSource 属性

定义

获取或设置当 的 Update 方法DbDataAdapter使用 时命令结果如何应用于 DataRow

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

属性值

UpdateRowSource 值之一。

注解

默认值为 UpdateRowSourceBoth ,除非命令是自动生成 (如 SqlCommandBuilder) ,在这种情况下,默认值为 None

有关使用 UpdatedRowSource 属性的详细信息,请参阅 DataAdapter Parameters

适用于