SqlCeChangeTracking.UpgradePublicTracking 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.

Upgrades tracking metadata in a SQL Server Compact SP2 database, on which tracking has been enabled, for use by Microsoft Sync Framework Service Pack 1 (SP1) and later versions of Sync Framework.

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

public static bool UpgradePublicTracking(
	string connectionString


Type: System.String
A connection string to the data source.

Return Value

Type: System.Boolean
true if the database was successfully upgraded or if the database is not currently being tracked; otherwise, false.