SqlCeChangeTracking.EnableTracking Method

Visual Studio 2010
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.

Enables tracking on the specified table.

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

public void EnableTracking(
	string tableName,
	TrackingKeyType trackingKeyType,
	TrackingOptions trackingOptions


Type: System.String
The name of the table on which to enable tracking.
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.
Type: System.Data.SqlServerCe.TrackingOptions
A bitwise combination TrackingOptions values that specifies the database operations to be tracked on the table.