Partilhar via


DataManager Constructor (String, String, Int32)

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, _
    sqlCommandTimeoutSeconds As Integer _
)
'Usage
Dim connectionString As String
Dim listConnectionString As String
Dim sqlCommandTimeoutSeconds As Integer

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

Parameters

  • connectionString
    Type: System..::.String
    The Database connection string for the Marketing database.
  • listConnectionString
    Type: System..::.String
    The time in seconds to wait for the SQL command to execute.
  • sqlCommandTimeoutSeconds
    Type: System..::.Int32
    The number of seconds to wait for normal SQL commands to execute. Default is specified in web.config and is normally 30 seconds.

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