다음을 통해 공유


DeleteBatch Method

Deletes a batch of promocodes.

Namespace:  Microsoft.CommerceServer.Marketing.WebService
Assembly:  Microsoft.CommerceServer.Marketing.DataManagement (in Microsoft.CommerceServer.Marketing.DataManagement.dll)

Syntax

'Declaration
<WebMethodAttribute> _
Public Overridable Sub DeleteBatch ( _
    batchId As Guid _
)
'Usage
Dim instance As MarketingWebService
Dim batchId As Guid

instance.DeleteBatch(batchId)
[WebMethodAttribute]
public virtual void DeleteBatch(
    Guid batchId
)
[WebMethodAttribute]
public:
virtual void DeleteBatch(
    Guid batchId
)
public function DeleteBatch(
    batchId : Guid
)

Parameters

  • batchId
    Type: System..::.Guid
    The Identifier of the promo code batch to delete.

Exceptions

Exception Condition
EntityDoesNotExistException

The promotion code definition does not exist.

InvalidCatalogOperationException

The batch is still being generated.

DatabaseIntegrityException

A serious integrity issue with the database exists.

Remarks

Deletes a promocode batch. This method will delete all promocodes for this batch from the promocode table.

Permissions

See Also

Reference

MarketingWebService Class

MarketingWebService Members

Microsoft.CommerceServer.Marketing.WebService Namespace