다음을 통해 공유


MarketingServices Constructor (String, String, AuthorizationMode, Int32, Int32, Int32, Int32)

Initializes a new instance of the MarketingServices class to interact with the Marketing Web service in Database mode and using the specified authorization policy configuration for management of authorization credentials.

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

Syntax

'Declaration
Protected Sub New ( _
    siteName As String, _
    authorizationPolicyFullPath As String, _
    authorizationMode As AuthorizationMode, _
    sqlCommandTimeoutSeconds As Integer, _
    sqlLongRunningCommandTimeoutSeconds As Integer, _
    sqlPcgCommandTimeoutSeconds As Integer, _
    sqlPcgLongRunningCommandTimeoutSeconds As Integer _
)
'Usage
Dim siteName As String
Dim authorizationPolicyFullPath As String
Dim authorizationMode As AuthorizationMode
Dim sqlCommandTimeoutSeconds As Integer
Dim sqlLongRunningCommandTimeoutSeconds As Integer
Dim sqlPcgCommandTimeoutSeconds As Integer
Dim sqlPcgLongRunningCommandTimeoutSeconds As Integer

Dim instance As New MarketingServices(siteName, _
    authorizationPolicyFullPath, authorizationMode, _
    sqlCommandTimeoutSeconds, sqlLongRunningCommandTimeoutSeconds, _
    sqlPcgCommandTimeoutSeconds, sqlPcgLongRunningCommandTimeoutSeconds)
protected MarketingServices(
    string siteName,
    string authorizationPolicyFullPath,
    AuthorizationMode authorizationMode,
    int sqlCommandTimeoutSeconds,
    int sqlLongRunningCommandTimeoutSeconds,
    int sqlPcgCommandTimeoutSeconds,
    int sqlPcgLongRunningCommandTimeoutSeconds
)
protected:
MarketingServices(
    String^ siteName, 
    String^ authorizationPolicyFullPath, 
    AuthorizationMode authorizationMode, 
    int sqlCommandTimeoutSeconds, 
    int sqlLongRunningCommandTimeoutSeconds, 
    int sqlPcgCommandTimeoutSeconds, 
    int sqlPcgLongRunningCommandTimeoutSeconds
)
protected function MarketingServices(
    siteName : String, 
    authorizationPolicyFullPath : String, 
    authorizationMode : AuthorizationMode, 
    sqlCommandTimeoutSeconds : int, 
    sqlLongRunningCommandTimeoutSeconds : int, 
    sqlPcgCommandTimeoutSeconds : int, 
    sqlPcgLongRunningCommandTimeoutSeconds : int
)

Parameters

  • siteName
    Type: System..::.String
    The name of Commerce Server site which the current instance represents.
  • authorizationPolicyFullPath
    Type: System..::.String
    The path to authorization policy XML file.
  • 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.
  • sqlLongRunningCommandTimeoutSeconds
    Type: System..::.Int32
    The number of seconds to wait for long-running SQL commands to execute. Default is specified in web.config and is normally 120 seconds.
  • sqlPcgCommandTimeoutSeconds
    Type: System..::.Int32
    The number of seconds to wait for normal PromoCode Generator SQL commands to execute. Default is specified in web.config and is normally 60 seconds.

Remarks

Creates a new instance of the MarketingServices class to interact with the Marketing Web service in Database mode and using the specified authorization policy configuration for management of authorization credentials.

Permissions

See Also

Reference

MarketingServices Class

MarketingServices Members

MarketingServices Overload

Microsoft.CommerceServer.Marketing Namespace