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 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
- expressionId
Type: System..::.Int32
The Id of an existing global Expression, or zero to indicate that an AlwaysTrueExpressionRef should be created. May not be less than zero.
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
- 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.