Partilhar via


SqlCeDataAdapter Constructor (SqlCeCommand)

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Initializes a new instance of the SqlCeDataAdapter class with the specified SqlCeCommand as the SelectCommand property.

  [Visual Basic]
  Public Sub New( _
   ByVal 
  selectCommand
   As SqlCeCommand _
)
[C#]
public SqlCeDataAdapter(
   SqlCeCommand selectCommand
);
[C++]
public: SqlCeDataAdapter(
   SqlCeCommand* selectCommand
);
[JScript]
public function SqlCeDataAdapter(
   selectCommand : SqlCeCommand);

Parameters

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 MissingMappingAction.Passthrough
MissingSchemaAction MissingSchemaAction.Add

You can change the value of any of these properties through a separate call to the property.

Requirements

Platforms: .NET Compact Framework

.NET Framework Security:

See Also

SqlCeDataAdapter Class | SqlCeDataAdapter Members | System.Data.SqlServerCe Namespace | SqlCeDataAdapter Constructor Overload List | MissingMappingAction | MissingSchemaAction

Syntax based on .NET Framework version 1.1.
Documentation version 1.1.1.

Send comments on this topic.

© Microsoft Corporation. All rights reserved.