MarketingServices Constructor (String, String, AuthorizationMode, 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 _
)
'Usage
Dim siteName As String
Dim authorizationPolicyFullPath As String
Dim authorizationMode As AuthorizationMode
Dim sqlCommandTimeoutSeconds As Integer
Dim sqlLongRunningCommandTimeoutSeconds As Integer
Dim instance As New MarketingServices(siteName, _
authorizationPolicyFullPath, authorizationMode, _
sqlCommandTimeoutSeconds, sqlLongRunningCommandTimeoutSeconds)
protected MarketingServices(
string siteName,
string authorizationPolicyFullPath,
AuthorizationMode authorizationMode,
int sqlCommandTimeoutSeconds,
int sqlLongRunningCommandTimeoutSeconds
)
protected:
MarketingServices(
String^ siteName,
String^ authorizationPolicyFullPath,
AuthorizationMode authorizationMode,
int sqlCommandTimeoutSeconds,
int sqlLongRunningCommandTimeoutSeconds
)
protected function MarketingServices(
siteName : String,
authorizationPolicyFullPath : String,
authorizationMode : AuthorizationMode,
sqlCommandTimeoutSeconds : int,
sqlLongRunningCommandTimeoutSeconds : 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.
- authorizationMode
Type: Microsoft.CommerceServer..::.AuthorizationMode
One of AuthorizationMode values which determines the source of identity information.
- 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.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.