NewExpressionRef Method (Int32)

Creates either an AlwaysTrueExpressionRef or a GlobalExpressionRef object referring to the global expression with the specified identifier.

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

Syntax

'Declaration
Public Function NewExpressionRef ( _
    expressionId As Integer _
) As ExpressionRef
'Usage
Dim instance As ExpressionManager
Dim expressionId As Integer
Dim returnValue As ExpressionRef

returnValue = instance.NewExpressionRef(expressionId)
public ExpressionRef NewExpressionRef(
    int expressionId
)
public:
ExpressionRef^ NewExpressionRef(
    int expressionId
)
public function NewExpressionRef(
    expressionId : int
) : ExpressionRef

Parameters

Return Value

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

Exceptions

Exception Condition
ArgumentOutOfRangeException

The expressionId was less than zero.

Remarks

Creates either an AlwaysTrueExpressionRef (if expressionId is a zero) or a GlobalExpressionRef object (if expressionId is an Id of an existing global Expression).

Permissions

See Also

Reference

ExpressionManager Class

ExpressionManager Members

NewExpressionRef Overload

Microsoft.CommerceServer.Marketing Namespace