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
- batchId
Type: System..::.Guid
Id of the batch to delete.
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
- 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
PromoCodeDefinitionManager Class