Share via


UpdatedRowSource Property

Gets or sets how command results are applied to the DataRow when used by the Update method of the DbDataAdapter. This property should not be used with the .NET Compact Framework Data Provider for .

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)

Syntax

'Declaration
Public Overrides Property UpdatedRowSource As UpdateRowSource
    Get
    Set
'Usage
Dim instance As SqlCeCommand
Dim value As UpdateRowSource

value = instance.UpdatedRowSource

instance.UpdatedRowSource = value
public override UpdateRowSource UpdatedRowSource { get; set; }
public:
virtual property UpdateRowSource UpdatedRowSource {
    UpdateRowSource get () override;
    void set (UpdateRowSource value) override;
}
abstract UpdatedRowSource : UpdateRowSource with get, set
override UpdatedRowSource : UpdateRowSource with get, set
override function get UpdatedRowSource () : UpdateRowSource
override function set UpdatedRowSource (value : UpdateRowSource)

Property Value

Type: System.Data. . :: . .UpdateRowSource
One of the UpdateRowSource values. The default is Both. If the command is automatically generated, the default is None.

Implements

IDbCommand. . :: . .UpdatedRowSource

Exceptions

Exception Condition
ArgumentException

The value entered was not one of the UpdateRowSource values.

Examples

Dim cmd As SqlCeCommand = conn.CreateCommand()
cmd.CommandText = "SELECT * FROM Categories ORDER BY CategoryID"
cmd.CommandType = CommandType.Text
cmd.UpdatedRowSource = UpdateRowSource.Both
SqlCeCommand cmd = conn.CreateCommand();
cmd.CommandText = "SELECT * FROM Categories ORDER BY CategoryID";
cmd.CommandType = CommandType.Text;
cmd.UpdatedRowSource = UpdateRowSource.Both;

See Also

Reference

SqlCeCommand Class

SqlCeCommand Members

System.Data.SqlServerCe Namespace