Partilhar via


AlwaysTrueExpressionRef Class

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Associates a pseudo-expression that always evaluates to true with a campaign item.

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

Syntax

'Declaration
<ComVisibleAttribute(False)> _
Public NotInheritable Class AlwaysTrueExpressionRef _
    Inherits ExpressionRef
'Usage
Dim instance As AlwaysTrueExpressionRef
[ComVisibleAttribute(false)]
public sealed class AlwaysTrueExpressionRef : ExpressionRef
[ComVisibleAttribute(false)]
public ref class AlwaysTrueExpressionRef sealed : public ExpressionRef
public final class AlwaysTrueExpressionRef extends ExpressionRef

Remarks

To create an AlwaysTrueExpressionRef object, call NewExpressionRef and pass in the value zero. An AlwaysTrueExpression is indicated by an expression identifier in the system with a value of zero or nullNothingnullptra null reference (Nothing in Visual Basic). This can be used to indicate that a Discount campaign item has a condition that is met by any catalog item or whose award set includes any discountable catalog item. There is no expression body for these cases - the lack of an expression body indicates that the predicate should always evaluate to true.

Inheritance Hierarchy

System..::.Object
  Microsoft.CommerceServer.Marketing..::.MarketingServices
    Microsoft.CommerceServer.Marketing..::.ExpressionRef
      Microsoft.CommerceServer.Marketing..::.AlwaysTrueExpressionRef

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

AlwaysTrueExpressionRef Members

Microsoft.CommerceServer.Marketing Namespace

ExpressionRef

Expression

ExpressionManager