Delen via


SqlCeDataAdapter.SelectCommand Property

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

Gets or sets an SQL statement used to select records in the data source.

  [Visual Basic]
  Public Shadows Property SelectCommand As SqlCeCommand
[C#]
public new SqlCeCommand SelectCommand {get; set;}
[C++]
public: __property SqlCeCommand* get_SelectCommand();
public: __property void set_SelectCommand(SqlCeCommand*);
[JScript]
public hide function get SelectCommand() : SqlCeCommand;
public function set SelectCommand(SqlCeCommand);

Property Value

A SqlCeCommand that is used during Fill to select records from data source for placement in the DataSet.

Remarks

When SelectCommand is assigned to a previously created SqlCeCommand, the SqlCeCommand is not cloned. The SelectCommand maintains a reference to the previously created SqlCeCommand object.

If the SelectCommand does not return any rows, no tables are added to the DataSet, and no exception is raised.

Requirements

Platforms: .NET Compact Framework

.NET Framework Security:

See Also

SqlCeDataAdapter Class | SqlCeDataAdapter Members | System.Data.SqlServerCe Namespace | DeleteCommand | InsertCommand | UpdateCommand

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

Send comments on this topic.

© Microsoft Corporation. All rights reserved.