Поделиться через


SqlCeCommandBuilder.DataAdapter Property

Gets or sets a SqlCeDataAdapter object for which SQL statements are automatically generated.

Namespace: System.Data.SqlServerCe
Assembly: System.Data.SqlServerCe (in system.data.sqlserverce.dll)

Syntax

'Declaration
Public Property DataAdapter As SqlCeDataAdapter
'Usage
Dim instance As SqlCeCommandBuilder
Dim value As SqlCeDataAdapter

value = instance.DataAdapter

instance.DataAdapter = value
public SqlCeDataAdapter DataAdapter { get; set; }
public:
property SqlCeDataAdapter^ DataAdapter {
    SqlCeDataAdapter^ get ();
    void set (SqlCeDataAdapter^ value);
}
/** @property */
public SqlCeDataAdapter get_DataAdapter ()

/** @property */
public void set_DataAdapter (SqlCeDataAdapter value)
public function get DataAdapter () : SqlCeDataAdapter

public function set DataAdapter (value : SqlCeDataAdapter)
Not applicable.

Property Value

A SqlCeDataAdapter object.

Remarks

The SqlCeCommandBuilder registers itself as a listener for RowUpdating events that are generated by the SqlCeDataAdapter specified in this property.

When you create a new instance of SqlCeCommandBuilder, any existing SqlCeCommandBuilder associated with this SqlCeDataAdapter is released.

Platforms

Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows XP Professional x64 Edition, Windows XP SP2

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

.NET Compact Framework

Supported in: 2.0, 1.0

See Also

Reference

SqlCeCommandBuilder Class
SqlCeCommandBuilder Members
System.Data.SqlServerCe Namespace