Share via


SqlCeCommand.UpdatedRowSource Property

Obtient ou définit la manière dont les résultats des commandes sont appliqués à DataRow lorsqu'ils sont utilisés par la méthode Update de DbDataAdapter. Cette propriété ne doit pas être utilisée avec le fournisseur de données .NET Compact Framework pour SQL Server Compact 3.5.

Espace de noms: System.Data.SqlServerCe
Assembly: System.Data.SqlServerCe (dans system.data.sqlserverce.dll)

Syntaxe

'Déclaration
Public Overrides Property UpdatedRowSource As UpdateRowSource
public override UpdateRowSource UpdatedRowSource { get; set; }
public:
virtual property UpdateRowSource UpdatedRowSource {
    UpdateRowSource get () override;
    void set (UpdateRowSource value) override;
}
/** @property */
public UpdateRowSource get_UpdatedRowSource ()

/** @property */
public void set_UpdatedRowSource (UpdateRowSource value)
public override function get UpdatedRowSource () : UpdateRowSource

public override function set UpdatedRowSource (value : UpdateRowSource)

Valeur de propriété

Une des valeurs de UpdateRowSource. Le type par défaut est Both. Si la commande est générée automatiquement, la valeur par défaut est None.

Exceptions

Type d'exception Condition
ArgumentException

La valeur entrée n'est pas une valeur UpdateRowSource.

Exemple

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;

Sécurité des threads

Tout membre statique public (Partagé dans Microsoft Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme sûrs.

Plateformes

Plateformes de développement

Windows Vista, Windows Mobile 5.0, Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Mobile 2003 for Pocket PC, Windows CE 5.0
Informations sur la version
.NET Framework et NET Compact Framework
Pris en charge dans 3.5
.NET Framework
Pris en charge dans 3.0
.NET Compact Framework et .Net Framework
Pris en charge dans 2.0

Voir aussi

Référence

SqlCeCommand Class
SqlCeCommand Members
System.Data.SqlServerCe Namespace