SqlCeTransaction 類別
表示要在資料來源進行的 SQL 交易。這個類別無法被繼承。
命名空間: System.Data.SqlServerCe
組件: System.Data.SqlServerCe (在 System.Data.SqlServerCe.dll 中)
語法
'宣告
Public NotInheritable Class SqlCeTransaction _
Inherits DbTransaction
'用途
Dim instance As SqlCeTransaction
public sealed class SqlCeTransaction : DbTransaction
public ref class SqlCeTransaction sealed : public DbTransaction
[<SealedAttribute>]
type SqlCeTransaction =
class
inherit DbTransaction
end
public final class SqlCeTransaction extends DbTransaction
備註
您可藉由在 SqlCeConnection 物件上呼叫 BeginTransaction,在應用程式中建立 SqlCeTransaction 物件。與交易關聯的所有後續作業 (例如,認可或取消交易) 是在 SqlCeTransaction 物件上執行。
繼承階層
System. . :: . .Object
System. . :: . .MarshalByRefObject
System.Data.Common. . :: . .DbTransaction
System.Data.SqlServerCe..::..SqlCeTransaction
執行緒安全性
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.