Share via


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)

Syntax

'Declaration
Public Sub New ( _
    connection As SqlConnection, _
    objectPrefix As String, _
    objectSchema As String, _
    retentionInDays As Integer _
)
'Usage
Dim connection As SqlConnection
Dim objectPrefix As String
Dim objectSchema As String
Dim retentionInDays As Integer

Dim instance As New SqlSyncStoreMetadataCleanup(connection, objectPrefix, objectSchema, retentionInDays)
public SqlSyncStoreMetadataCleanup (
    SqlConnection connection,
    string objectPrefix,
    string objectSchema,
    int retentionInDays
)
public:
SqlSyncStoreMetadataCleanup (
    SqlConnection^ connection, 
    String^ objectPrefix, 
    String^ objectSchema, 
    int retentionInDays
)
public SqlSyncStoreMetadataCleanup (
    SqlConnection connection, 
    String objectPrefix, 
    String objectSchema, 
    int retentionInDays
)
public function SqlSyncStoreMetadataCleanup (
    connection : SqlConnection, 
    objectPrefix : String, 
    objectSchema : String, 
    retentionInDays : int
)

Parameters

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

See Also

Reference

SqlSyncStoreMetadataCleanup Class
SqlSyncStoreMetadataCleanup Members
Microsoft.Synchronization.Data.SqlServer Namespace