Partager via


CancelGeneration Method

Cancels the last import/generation task started by the current caller for the given definition.

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

Syntax

'Declaration
Public Function CancelGeneration ( _
    promoCodeDefinitionId As Integer _
) As Guid
'Usage
Dim instance As PromoCodeDefinitionManager
Dim promoCodeDefinitionId As Integer
Dim returnValue As Guid

returnValue = instance.CancelGeneration(promoCodeDefinitionId)
public Guid CancelGeneration(
    int promoCodeDefinitionId
)
public:
Guid CancelGeneration(
    int promoCodeDefinitionId
)
public function CancelGeneration(
    promoCodeDefinitionId : int
) : Guid

Parameters

Return Value

Type: System..::.Guid
The unique identifier of import or generation batch that was canceled.

Remarks

Returns the Id of the import or generation batch that was canceled.

Permissions

See Also

Reference

PromoCodeDefinitionManager Class

PromoCodeDefinitionManager Members

Microsoft.CommerceServer.Marketing Namespace