SqlCeCommand Members
表示要針對資料來源執行的 SQL 陳述式。
下表列出 SqlCeCommand 型別公開的成員。
公用 建構函式
名稱 | 描述 | |
---|---|---|
SqlCeCommand | 多載。初始化 SqlCeCommand 類別的新執行個體。 |
頂端
公用 屬性
(另請參閱 受保護的 屬性 )
名稱 | 描述 | |
---|---|---|
![]() |
CommandText | 覆寫。取得或設定要在資料來源執行的 SQL 陳述式。 |
![]() |
CommandTimeout | 覆寫。取得或設定結束嘗試執行命令並產生錯誤之前的等候時間。 |
![]() |
CommandType | 覆寫。取得或設定代表如何解譯 CommandText 屬性的值。 |
![]() |
Connection | 取得或設定由 SqlCeCommand 的這個執行個體所使用的 SqlCeConnection。 |
![]() |
Container | (繼承自 Component ) |
![]() |
DesignTimeVisible | 覆寫。Get 會永遠傳回 false; Set 則永遠擲回 NotSupportedException。 |
![]() |
IndexName | 指定要開啟的索引。 |
![]() |
Parameters | 取得 SqlCeParameterCollection。 |
![]() |
Site | (繼承自 Component ) |
![]() |
Transaction | 取得或設定在其中執行 SqlCeCommand 的交易。 |
![]() |
UpdatedRowSource | 覆寫。取得或設定當命令結果是由 DbDataAdapter 的 Update 方法使用時,如何套用到 DataRow。這個屬性不能與 .NET Compact Framework Data Provider for SQL Server Compact 3.5 搭配使用。 |
頂端
受保護的 屬性
名稱 | 描述 | |
---|---|---|
![]() |
CanRaiseEvents | (繼承自 Component ) |
![]() |
DbConnection | (繼承自 DbCommand ) |
![]() |
DbParameterCollection | (繼承自 DbCommand ) |
![]() |
DbTransaction | (繼承自 DbCommand ) |
![]() |
DesignMode | (繼承自 Component ) |
![]() |
Events | (繼承自 Component ) |
頂端
公用 方法
(另請參閱 受保護的 方法 )
名稱 | 描述 | |
---|---|---|
![]() |
Cancel | 覆寫。嘗試取消 SqlCeCommand 的執行。 |
![]() |
CreateObjRef | (繼承自 MarshalByRefObject ) |
![]() |
CreateParameter | 建立 SqlCeParameter 物件的新執行個體。 |
![]() |
Dispose | 多載。 (繼承自 Component ) |
![]() |
Equals | 多載。 (繼承自 Object ) |
![]() |
ExecuteNonQuery | 覆寫。針對 SqlCeConnection 執行 SQL 陳述式,並傳回受影響的資料列數。 |
![]() |
ExecuteReader | 多載。將 CommandText 傳送到 Connection,並建立 SqlCeDataReader。 |
![]() |
ExecuteResultSet | 多載。將 CommandText 傳送到 Connection,並建立 SqlCeResultSet。 |
![]() |
ExecuteScalar | 覆寫。執行查詢,並傳回查詢所傳回的結果集中第一個資料列的第一個資料行。會忽略額外的資料行或資料列。 |
![]() |
GetHashCode | (繼承自 Object ) |
![]() |
GetLifetimeService | (繼承自 MarshalByRefObject ) |
![]() |
GetType | (繼承自 Object ) |
![]() |
InitializeLifetimeService | (繼承自 MarshalByRefObject ) |
![]() |
Prepare | 覆寫。會在資料來源上建立命令的備製 (或已編譯的) 版本。 |
![]() ![]() |
ReferenceEquals | (繼承自 Object ) |
![]() |
SetRange | 限制將由 SqlCeDataReader 所讀取的資料列集合。 |
![]() |
ToString | (繼承自 Component ) |
頂端
受保護的 方法
名稱 | 描述 | |
---|---|---|
![]() |
CreateDbParameter | (繼承自 DbCommand ) |
![]() |
Dispose | 多載。 (繼承自 Component ) |
![]() |
ExecuteDbDataReader | (繼承自 DbCommand ) |
![]() |
Finalize | (繼承自 Component ) |
![]() |
GetService | (繼承自 Component ) |
![]() |
MemberwiseClone | 多載。 (繼承自 MarshalByRefObject ) |
頂端
公用 事件
名稱 | 描述 | |
---|---|---|
![]() |
Disposed | (繼承自 Component ) |
頂端
明確介面實作
名稱 | 描述 | |
---|---|---|
System.Data.IDbCommand.CreateParameter | (繼承自 DbCommand ) | |
System.Data.IDbCommand.ExecuteReader | 多載。 (繼承自 DbCommand ) | |
System.ICloneable.Clone | ||
System.Data.IDbCommand.Connection | (繼承自 DbCommand ) | |
System.Data.IDbCommand.Parameters | (繼承自 DbCommand ) | |
System.Data.IDbCommand.Transaction | (繼承自 DbCommand ) |
頂端
另請參閱
參考
SqlCeCommand Class
System.Data.SqlServerCe Namespace
SqlCeDataAdapter
SqlCeConnection