Export (0) Print
Expand All

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
[C#]
public virtual UpdateRowSource UpdatedRowSource {get; set;}
[C++]
public: __property virtual UpdateRowSource get_UpdatedRowSource();
public: __property virtual void set_UpdatedRowSource(UpdateRowSource);
[JScript]
public function get UpdatedRowSource() : UpdateRowSource;
public function set UpdatedRowSource(UpdateRowSource);

Property Value

One of the UpdateRowSource values.

Implements

IDbCommand.UpdatedRowSource

Exceptions

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

Remarks

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.

Requirements

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

Show:
© 2014 Microsoft