Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates an expression reference of the appropriate type that references the provided local or global expression.
Namespace: Microsoft.CommerceServer.Marketing
Assembly: Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)
Syntax
'Declaration
Public Function NewExpressionRef ( _
expression As Expression _
) As ExpressionRef
'Usage
Dim instance As ExpressionManager
Dim expression As Expression
Dim returnValue As ExpressionRef
returnValue = instance.NewExpressionRef(expression)
public ExpressionRef NewExpressionRef(
Expression expression
)
public:
ExpressionRef^ NewExpressionRef(
Expression^ expression
)
public function NewExpressionRef(
expression : Expression
) : ExpressionRef
Parameters
- expression
Type: Microsoft.CommerceServer.Marketing..::.Expression
The Expression to be referenced. May not be nullNothingnullptra null reference (Nothing in Visual Basic).
Return Value
Type: Microsoft.CommerceServer.Marketing..::.ExpressionRef
The newly created ExpressionRef.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | expression is nullNothingnullptra null reference (Nothing in Visual Basic). |
InvalidOperationException | The expression argument is a reference to a global Expression object, but the Expression has not been saved to the database (its identifier value is less than or equal to zero). |
Remarks
If the Expression given by the expression is global and has been saved to persistent storage, then a GlobalExpressionRef has been created.
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.