Remove Method
Removes the specified Promocode string from the collection.
Namespace: Microsoft.CommerceServer.Runtime.Orders
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Sub Remove ( _
promotionCode As String _
)
'Usage
Dim instance As PromoCodeStringCollection
Dim promotionCode As String
instance.Remove(promotionCode)
public void Remove(
string promotionCode
)
public:
void Remove(
String^ promotionCode
)
public function Remove(
promotionCode : String
)
Parameters
- promotionCode
Type: System..::.String
The Promocode string to be removed. Cannot be nullNothingnullptra null reference (Nothing in Visual Basic).
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The promotionCode string is nullNothingnullptra null reference (Nothing in Visual Basic). |
Remarks
Removes the specified Promo Code string from the collection.
Successfully calling Remove updates LastModified.
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.
See Also
Reference
PromoCodeStringCollection Class