Поделиться через


NewExpressionRef Method (Expression)

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

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

See Also

Reference

ExpressionManager Class

ExpressionManager Members

NewExpressionRef Overload

Microsoft.CommerceServer.Marketing Namespace