Share via


DeleteBatch Method

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Deletes a batch of promocodes.

Namespace:  Microsoft.CommerceServer.Marketing
Assembly:  Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)

Syntax

'Declaration
Public Sub DeleteBatch ( _
    batchId As Guid _
)
'Usage
Dim instance As PromoCodeDefinitionManager
Dim batchId As Guid

instance.DeleteBatch(batchId)
public void DeleteBatch(
    Guid batchId
)
public:
void DeleteBatch(
    Guid batchId
)
public function DeleteBatch(
    batchId : Guid
)

Parameters

Exceptions

Exception Condition
NotAuthorizedException

The calling user is not authorized to perform this operation.

EntityDoesNotExistException

No PromoCodeDefinition exists with the provided Id value.

InvalidOperationException

Attempting to delete the batch that is not yet finished being generated.

Remarks

Deletes the promocode batch, specified by batchId.

This method uses the long running SQL command, sqlCommandTimeoutSeconds, of MarketingServices. The long running SQL command time out default is specified in web.config and is normally 120 seconds.

Permissions

See Also

Reference

PromoCodeDefinitionManager Class

PromoCodeDefinitionManager Members

Microsoft.CommerceServer.Marketing Namespace