次の方法で共有


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

See Also

Reference

PromoCodeStringCollection Class

PromoCodeStringCollection Members

Microsoft.CommerceServer.Runtime.Orders Namespace