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
- promoCodeDefinitionId
Type: System..::.Int32
Id of the PromoCodeDefinition for which an import or generation task has been requested.
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
- 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