SqlCeCommand Constructor ()
Inizializza una nuova istanza della classe SqlCeCommand.
Spazio dei nomi: System.Data.SqlServerCe
Assembly: System.Data.SqlServerCe (in system.data.sqlserverce.dll)
Sintassi
'Dichiarazione
Public Sub New
public SqlCeCommand ()
public:
SqlCeCommand ()
public SqlCeCommand ()
public function SqlCeCommand ()
Osservazioni
Il costruttore base consente di inizializzare tutti i campi impostandoli sui relativi valori predefiniti. Nella tabella seguente sono riportati i valori iniziali della proprietà per un'istanza della classe SqlCeCommand.
Proprietà |
Valore iniziale |
stringa vuota ("") |
|
Text |
|
null |
Esempio
Nell'esempio seguente viene creata una classe SqlCeCommand e ne vengono impostate alcune proprietà.
Dim cmd As SqlCeCommand = conn.CreateCommand()
cmd.CommandText = "SELECT * FROM Categories ORDER BY CategoryID"
cmd.CommandType = CommandType.Text
cmd.UpdatedRowSource = UpdateRowSource.Both
SqlCeCommand cmd = conn.CreateCommand();
cmd.CommandText = "SELECT * FROM Categories ORDER BY CategoryID";
cmd.CommandType = CommandType.Text;
cmd.UpdatedRowSource = UpdateRowSource.Both;
Piattaforme
Piattaforme di sviluppo
Windows Vista, Windows Mobile 5.0, Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Mobile 2003 for Pocket PC, Windows CE 5.0
Informazioni sulla versione
.NET Framework e .NET Compact Framework
Supportato in 3.5
.NET Framework
Supportato in 3.0
.NET Compact Framework e .NET Framework
Supportato in 2.0
Vedere anche
Riferimento
SqlCeCommand Class
SqlCeCommand Members
System.Data.SqlServerCe Namespace