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
- expressionRef
Type: Microsoft.CommerceServer.Marketing..::.ExpressionRef
An ExpressionRef to be added into the collection.
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
- 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.