Partager via


Add Method

Adds an expression reference to the end of the current ExpressionRefCollection.

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

Syntax

'Declaration
Public Sub Add ( _
    expressionRef As ExpressionRef _
)
'Usage
Dim instance As ExpressionRefCollection
Dim expressionRef As ExpressionRef

instance.Add(expressionRef)
public void Add(
    ExpressionRef expressionRef
)
public:
void Add(
    ExpressionRef^ expressionRef
)
public function Add(
    expressionRef : ExpressionRef
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

The expressionRef is nullNothingnullptra null reference (Nothing in Visual Basic).

InvalidOperationException

Cannot add an AlwaysTrueExpressionRef to the collection.

DuplicateEntityIdException

A duplicate object already exists in the collection.

Remarks

Adds a member to the ExpressionRefCollection collection object. The expressionRef object is added to the end of the ExpressionRefCollection. The Count of the collection is incremented.

Permissions

See Also

Reference

ExpressionRefCollection Class

ExpressionRefCollection Members

Microsoft.CommerceServer.Marketing Namespace