GetLastCommittedCsn 方法

返回为与 SqlCeChangeTracking 对象关联的数据源提交的最后一个事务的提交序列号 (CSN)。

命名空间:  System.Data.SqlServerCe
程序集:  System.Data.SqlServerCe(在 System.Data.SqlServerCe.dll 中)

语法

声明
Public Function GetLastCommittedCsn As Long
用法
Dim instance As SqlCeChangeTracking
Dim returnValue As Long

returnValue = instance.GetLastCommittedCsn()
public long GetLastCommittedCsn()
public:
long long GetLastCommittedCsn()
member GetLastCommittedCsn : unit -> int64 
public function GetLastCommittedCsn() : long

返回值

类型:System. . :: . .Int64
数据源的 CSN。

注释

每个 SQL Server Compact 3.5 数据库均保留一个单调递增计数器,用于指示针对其登记数据库的每个事务提交的顺序。此值即提交序列号 (CSN),它在提交时分配给每个事务,然后递增。GetLastCommittedCsn 方法返回分配给所提交的最后一个事务的 CSN。

请参阅

参考

SqlCeChangeTracking类

SqlCeChangeTracking 成员

System.Data.SqlServerCe 命名空间