NewExpressionFromProductPickerCategory Method

Creates a new expression with the specified catalog name and category name.

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

Syntax

'Declaration
Public Function NewExpressionFromProductPickerCategory ( _
    catalogName As String, _
    categoryName As String, _
    isLocal As Boolean _
) As Expression
'Usage
Dim instance As ExpressionManager
Dim catalogName As String
Dim categoryName As String
Dim isLocal As Boolean
Dim returnValue As Expression

returnValue = instance.NewExpressionFromProductPickerCategory(catalogName, _
    categoryName, isLocal)
public Expression NewExpressionFromProductPickerCategory(
    string catalogName,
    string categoryName,
    bool isLocal
)
public:
Expression^ NewExpressionFromProductPickerCategory(
    String^ catalogName, 
    String^ categoryName, 
    bool isLocal
)
public function NewExpressionFromProductPickerCategory(
    catalogName : String, 
    categoryName : String, 
    isLocal : boolean
) : Expression

Parameters

  • catalogName
    Type: System..::.String
    The catalog name of the new expression. May not be nullNothingnullptra null reference (Nothing in Visual Basic) or an empty string.
  • categoryName
    Type: System..::.String
    The category name of the new expression. May not be nullNothingnullptra null reference (Nothing in Visual Basic) or an empty string.
  • isLocal
    Type: System..::.Boolean
    true if the expressions is local to a Discount scope, false if it is a global expression.

Return Value

Type: Microsoft.CommerceServer.Marketing..::.Expression
The newly created Expression.

Exceptions

Exception Condition
ArgumentNullException

The provided catalogName or categoryName is nullNothingnullptra null reference (Nothing in Visual Basic).

ArgumentException

The provided catalogName or categoryName is an empty string.

Remarks

The Expression does not exist in the database until Save is called on the Expression object. is not persisted in the database until Save is called.

Permissions

See Also

Reference

ExpressionManager Class

ExpressionManager Members

Microsoft.CommerceServer.Marketing Namespace