SqlCeClientSyncProvider.BeginTransaction 方法
由 SyncAgent 调用以开始一个事务。这允许代理将一组变更作为一个原子单位来提交。
命名空间: Microsoft.Synchronization.Data.SqlServerCe
程序集: Microsoft.Synchronization.Data.SqlServerCe(在 microsoft.synchronization.data.sqlserverce.dll 中)
语法
声明
<SuppressMessageAttribute("Microsoft.Globalization", "CA1303:DoNotPassLiteralsAsLocalizedParameters", Target:="Microsoft.Synchronization.Data.SyncTracer.Verbose(string)")> _
Public Overrides Sub BeginTransaction ( _
syncSession As SyncSession _
)
用法
Dim instance As SqlCeClientSyncProvider
Dim syncSession As SyncSession
instance.BeginTransaction(syncSession)
[SuppressMessageAttribute("Microsoft.Globalization", "CA1303:DoNotPassLiteralsAsLocalizedParameters", Target="Microsoft.Synchronization.Data.SyncTracer.Verbose(string)")]
public override void BeginTransaction (
SyncSession syncSession
)
[SuppressMessageAttribute(L"Microsoft.Globalization", L"CA1303:DoNotPassLiteralsAsLocalizedParameters", Target=L"Microsoft.Synchronization.Data.SyncTracer.Verbose(string)")]
public:
virtual void BeginTransaction (
SyncSession^ syncSession
) override
/** @attribute SuppressMessageAttribute("Microsoft.Globalization", "CA1303:DoNotPassLiteralsAsLocalizedParameters", Target="Microsoft.Synchronization.Data.SyncTracer.Verbose(string)") */
public void BeginTransaction (
SyncSession syncSession
)
SuppressMessageAttribute("Microsoft.Globalization", "CA1303:DoNotPassLiteralsAsLocalizedParameters", Target="Microsoft.Synchronization.Data.SyncTracer.Verbose(string)")
public override function BeginTransaction (
syncSession : SyncSession
)
参数
- syncSession
包含有关当前同步会话的元数据的 SyncSession 对象。
请参阅
参考
SqlCeClientSyncProvider 类
SqlCeClientSyncProvider 成员
Microsoft.Synchronization.Data.SqlServerCe 命名空间