SqlCeChangeTracking.PurgeTransactionSequenceData Method

This type has a SecurityCriticalAttribute attribute, which restricts it to internal use by the .NET Framework for Silverlight class library. Application code that uses any member of this type throws a MethodAccessException.

[SECURITY CRITICAL]

Purges the specified data from the transaction history table.

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)

Syntax

'Declaration
Public Sub PurgeTransactionSequenceData ( _
    pType As PurgeType, _
    retentionValue As Long _
)
'Usage
Dim instance As SqlCeChangeTracking
Dim pType As PurgeType
Dim retentionValue As Long

instance.PurgeTransactionSequenceData(pType, _
    retentionValue)
public void PurgeTransactionSequenceData(
    PurgeType pType,
    long retentionValue
)
public:
void PurgeTransactionSequenceData(
    PurgeType pType, 
    long long retentionValue
)
member PurgeTransactionSequenceData : 
        pType:PurgeType * 
        retentionValue:int64 -> unit 
public function PurgeTransactionSequenceData(
    pType : PurgeType, 
    retentionValue : long
)

Parameters

  • pType
    Type: System.Data.SqlServerCe.PurgeType
    One of the values of PurgeType that specifies whether the purge is time based or based on the commit sequence number (CSN) of the last transaction to modify the transaction history data.
  • retentionValue
    Type: System.Int64
    A number that specifies the limit up to which rows should be retained. In the case of a time based purge the parameter specifies the number of days from the present date for which to retain transaction history data. In the case of a CSN based purge, the parameter specifies the CSN of the last transaction for which transaction history data should be retained.

See Also

Reference

SqlCeChangeTracking Class

System.Data.SqlServerCe Namespace

PurgeType

GetLastCommittedCsn