SqlCeChangeTracking.EnableTracking 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]

Enables tracking on the specified table.

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

Syntax

'Declaration
Public Sub EnableTracking ( _
    tableName As String, _
    trackingKeyType As TrackingKeyType, _
    trackingOptions As TrackingOptions _
)
'Usage
Dim instance As SqlCeChangeTracking
Dim tableName As String
Dim trackingKeyType As TrackingKeyType
Dim trackingOptions As TrackingOptions

instance.EnableTracking(tableName, trackingKeyType, _
    trackingOptions)
public void EnableTracking(
    string tableName,
    TrackingKeyType trackingKeyType,
    TrackingOptions trackingOptions
)
public:
void EnableTracking(
    String^ tableName, 
    TrackingKeyType trackingKeyType, 
    TrackingOptions trackingOptions
)
member EnableTracking : 
        tableName:string * 
        trackingKeyType:TrackingKeyType * 
        trackingOptions:TrackingOptions -> unit 
public function EnableTracking(
    tableName : String, 
    trackingKeyType : TrackingKeyType, 
    trackingOptions : TrackingOptions
)

Parameters

  • tableName
    Type: System.String
    The name of the table on which to enable tracking.
  • trackingKeyType
    Type: System.Data.SqlServerCe.TrackingKeyType
    One of the values of TrackingKeyType that specifies the row key to use for tracked data. The row key uniquely identifies table rows to the tracking system and can be either the primary key of the table or a column of type uniqueidentifier that has the ROWGUIDCOL attribute applied.

See Also

Reference

SqlCeChangeTracking Class

System.Data.SqlServerCe Namespace

TrackingKeyType

TrackingOptions