SqlSyncStoreMetadataCleanup Constructor (SqlConnection, String, String, Int32)

Initializes a new instance of the SqlSyncStoreMetadataCleanup class with the specified connection, object prefix, object schema, and metadata retention period.

Namespace:  Microsoft.Synchronization.Data.SqlServer
Assembly:  Microsoft.Synchronization.Data.SqlServer (in Microsoft.Synchronization.Data.SqlServer.dll)

public:
SqlSyncStoreMetadataCleanup(
	SqlConnection^ connection, 
	String^ objectPrefix, 
	String^ objectSchema, 
	int retentionInDays
)

Parameters

connection
Type: System.Data.SqlClient::SqlConnection
A SqlConnection object that contains a connection to the database.
objectPrefix
Type: System::String
The prefix that is optionally specified for the ObjectPrefix property, to identify objects that Sync Framework creates.
objectSchema
Type: System::String
The database schema in which Sync Framework creates objects.
retentionInDays
Type: System::Int32
How old change-tracking metadata must be, in days, for that metadata to be deleted when PerformCleanup is called.
Show: