This documentation is archived and is not being maintained.

SqlCommand.UpdatedRowSource Property

Gets or sets how command results are applied to the DataRow when used by the Update method of the DbDataAdapter.

[Visual Basic]
Public Overridable Property UpdatedRowSource As UpdateRowSource  _
   Implements IDbCommand.UpdatedRowSource
public virtual UpdateRowSource UpdatedRowSource {get; set;}
public: __property virtual UpdateRowSource get_UpdatedRowSource();
public: __property virtual void set_UpdatedRowSource(UpdateRowSource);
public function get UpdatedRowSource() : UpdateRowSource;
public function set UpdatedRowSource(UpdateRowSource);

Property Value

One of the UpdateRowSource values.




Exception Type Condition
ArgumentException The value entered was not one of the UpdateRowSource values.


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.

For more information about using the UpdatedRowSource property, see Using Parameters with a DataAdapter.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

SqlCommand Class | SqlCommand Members | System.Data.SqlClient Namespace