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
- 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.