Partilhar via


DataManager Constructor (String, String)

Initializes a new instance of the DataManager class for performing Data Management functions (e.g. Purge old records that have been marked deleted) against the Marketing system database.

Namespace:  Microsoft.CommerceServer.Marketing
Assembly:  Microsoft.CommerceServer.Marketing.DataManagement (in Microsoft.CommerceServer.Marketing.DataManagement.dll)

Syntax

'Declaration
Public Sub New ( _
    connectionString As String, _
    listConnectionString As String _
)
'Usage
Dim connectionString As String
Dim listConnectionString As String

Dim instance As New DataManager(connectionString, _
    listConnectionString)
public DataManager(
    string connectionString,
    string listConnectionString
)
public:
DataManager(
    String^ connectionString, 
    String^ listConnectionString
)
public function DataManager(
    connectionString : String, 
    listConnectionString : String
)

Parameters

  • connectionString
    Type: System..::.String
    The Database connection string for the Marketing database.
  • listConnectionString
    Type: System..::.String
    The Database connection string for the List database.

Exceptions

Exception Condition
SqlException

A connection-level error occurred while opening the connection represented by the connectionString parameter.

Remarks

Initialize a DataManager class for performing DataManagement functions (e.g. Purge old records that have been marked deleted) against the Marketing system database.

This method can purge a CampaignItem, Campaign, Customer, and PromoCodeDefinition (discounts).

Permissions

See Also

Reference

DataManager Class

DataManager Members

DataManager Overload

Microsoft.CommerceServer.Marketing Namespace