SqlCeChangeTracking.GetLastCommittedCsn 方法

此类型具有 SecurityCriticalAttribute 属性,该属性将其限制为仅供 .NET Framework 内部用于 Silverlight 类库。使用此类型的任何成员的应用程序代码都将引发 MethodAccessException。

[SECURITY CRITICAL]

返回为与 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。

请参阅

参考

SqlCeChangeTracking 类

System.Data.SqlServerCe 命名空间