SqlCeChangeTracking.UpgradePublicTracking 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]
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)
Syntax
'Declaration
Public Shared Function UpgradePublicTracking ( _
connectionString As String _
) As Boolean
'Usage
Dim connectionString As String
Dim returnValue As Boolean
returnValue = SqlCeChangeTracking.UpgradePublicTracking(connectionString)
public static bool UpgradePublicTracking(
string connectionString
)
public:
static bool UpgradePublicTracking(
String^ connectionString
)
static member UpgradePublicTracking :
connectionString:string -> bool
public static function UpgradePublicTracking(
connectionString : String
) : boolean
Parameters
- 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.