Assembly: System.Data.SqlServerCe (in system.data.sqlserverce.dll)
/** @property */ public CommandType get_CommandType () /** @property */ public void set_CommandType (CommandType value)
public override function get CommandType () : CommandType public override function set CommandType (value : CommandType)
Property ValueOne of the CommandType values. The default is Text.
SQL Server Mobile supports only the Text and TableDirectCommandTypes. An unsupported exception is thrown if StoredProcedure is specified.
TableDirect is the fastest way to retrieve data from SQL Server Mobile, but cannot be used with joined tables.
The Connection, CommandType, and CommandText properties cannot be set if the current connection is performing an Execute or Fetch operation.
The following example creates an instance of SqlCeCommand and sets the CommandType and other properties.
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.