Remove Method
Removes the first occurrence of the specified ExpressionRef from the current ExpressionRefCollection.
Namespace: Microsoft.CommerceServer.Marketing
Assembly: Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)
Syntax
'Declaration
Public Sub Remove ( _
expressionRef As ExpressionRef _
)
'Usage
Dim instance As ExpressionRefCollection
Dim expressionRef As ExpressionRef
instance.Remove(expressionRef)
public void Remove(
ExpressionRef expressionRef
)
public:
void Remove(
ExpressionRef^ expressionRef
)
public function Remove(
expressionRef : ExpressionRef
)
Parameters
- expressionRef
Type: Microsoft.CommerceServer.Marketing..::.ExpressionRef
The ExpressionRef to be removed. May not be nullNothingnullptra null reference (Nothing in Visual Basic).
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | expressionRef is nullNothingnullptra null reference (Nothing in Visual Basic). |
Remarks
Removes the first occurrence of the specified ExpressionRef from the collection. When an ExpressionRef is removed from the collection, all subsequent ExpressionRef objects move up one index in the collection and the collection count is decremented.
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.