SqlCeDataAdapter Constructor (SqlCeCommand)
Initializes a new instance of the SqlCeDataAdapter class with the specified SqlCeCommand as the SelectCommand property.
Namespace: System.Data.SqlServerCe
Assembly: System.Data.SqlServerCe (in system.data.sqlserverce.dll)
Syntax
'Declaration
Public Sub New ( _
selectCommand As SqlCeCommand _
)
'Usage
Dim selectCommand As SqlCeCommand
Dim instance As New SqlCeDataAdapter(selectCommand)
public SqlCeDataAdapter (
SqlCeCommand selectCommand
)
public:
SqlCeDataAdapter (
SqlCeCommand^ selectCommand
)
public SqlCeDataAdapter (
SqlCeCommand selectCommand
)
public function SqlCeDataAdapter (
selectCommand : SqlCeCommand
)
Parameters
- selectCommand
A SqlCeCommand that is a SELECT statement. This SqlCeCommand is set as the SelectCommand property of the SqlCeDataAdapter.
Remarks
This version of the constructor sets the SelectCommand property to the value specified in the selectCommand parameter.
When you create an instance of SqlCeDataAdapter, the following read/write properties are set to the following initial values.
Properties |
Initial Value |
---|---|
MissingMappingAction.Passthrough |
|
MissingSchemaAction.Add |
You can change the value of any of these properties by making a separate call to that property.
Example
The following example creates a SqlCeDataAdapter by passing in a SqlCeCommand object.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .
Platforms
Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows XP Professional x64 Edition, Windows XP SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Version Information
.NET Compact Framework
Supported in: 2.0, 1.0
See Also
Reference
SqlCeDataAdapter Class
SqlCeDataAdapter Members
System.Data.SqlServerCe Namespace
MissingMappingAction Enumeration
MissingSchemaAction Enumeration