MarketingExpressionEvaluator Constructor
Initializes a new instance of the MarketingExpressionEvaluator class to run against the Expression Store contained in the new Marketing resource.
Namespace: Microsoft.CommerceServer.Runtime.Targeting
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Sub New ( _
connectionString As String, _
debugContext As DebugContext _
)
'Usage
Dim connectionString As String
Dim debugContext As DebugContext
Dim instance As New MarketingExpressionEvaluator(connectionString, _
debugContext)
public MarketingExpressionEvaluator(
string connectionString,
DebugContext debugContext
)
public:
MarketingExpressionEvaluator(
String^ connectionString,
DebugContext^ debugContext
)
public function MarketingExpressionEvaluator(
connectionString : String,
debugContext : DebugContext
)
Parameters
- connectionString
Type: System..::.String
ADO connection string. May not be nullNothingnullptra null reference (Nothing in Visual Basic).
- debugContext
Type: Microsoft.CommerceServer.Runtime.Diagnostics..::.DebugContext
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Either the connectionString or the dbgContext arguments are nullNothingnullptra null reference (Nothing in Visual Basic). |
CommerceCreateObjectException | The ExpressionEvaluator COM component could not be created. |
CommerceTargetingException | The connection to the expression store database failed. |
COMException | A failure occurred in the connect method of the expression evaluator interop object. |
Remarks
Initializes an MarketingExpressionEvaluator type that is constructed to run against the Expression Store contained in the new Marketing resource and not the legacy Expression Store from the Profiles (Biz Data Service) resource.
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.
See Also
Reference
MarketingExpressionEvaluator Class
MarketingExpressionEvaluator Members