Share via


Status Property

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

Gets or sets the PromoCodeOperationStatusCode that describes the status of the current instance.

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

Syntax

'Declaration
Public Property Status As PromoCodeOperationStatusCode
'Usage
Dim instance As BatchInfo
Dim value As PromoCodeOperationStatusCode

value = instance.Status

instance.Status = value
public PromoCodeOperationStatusCode Status { get; set; }
public:
property PromoCodeOperationStatusCode Status {
    PromoCodeOperationStatusCode get ();
    void set (PromoCodeOperationStatusCode value);
}
public function get Status () : PromoCodeOperationStatusCode
public function set Status (value : PromoCodeOperationStatusCode)

Property Value

Type: Microsoft.CommerceServer.Marketing..::.PromoCodeOperationStatusCode
The PromoCodeOperationStatusCode enumeration value.of the operation.

Remarks

The enumeration value shall be one of the following:

  • Canceled - The promotion code operation has been canceled.

  • Exporting - The export operation is in progress.

  • Failed - The promotion code operation failed.

  • FinishedWithErrors - The import task finished but some codes were not imported due to errors.

  • InProgress - The promotion code operation is currently in progress.

  • Queued - A new generation/import task has been defined but codes have not started being generated for the batch yet. This value will also be returned for PromoCodeDefinition objects for which there are no generation tasks.

  • Succeeded - The last promotion code operation completed successfully.

  • TimedOut - The import task timed out.

  • Uploading - The import operation is in the Upload phase.

Default is Failed.

Permissions

See Also

Reference

BatchInfo Class

BatchInfo Members

Microsoft.CommerceServer.Marketing Namespace