NewExpression Method
Creates a new Expression object with default values.
Namespace: Microsoft.CommerceServer.Marketing
Assembly: Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)
Syntax
'Declaration
Public Function NewExpression ( _
isLocal As Boolean _
) As Expression
'Usage
Dim instance As ExpressionManager
Dim isLocal As Boolean
Dim returnValue As Expression
returnValue = instance.NewExpression(isLocal)
public Expression NewExpression(
bool isLocal
)
public:
Expression^ NewExpression(
bool isLocal
)
public function NewExpression(
isLocal : boolean
) : Expression
Parameters
- 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 object.
Remarks
The Expression does not exist in the database until Save is called on the Expression object.
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.