Share via


ExportPromoCodes Class

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

This class is used to export PromoCodes using the web service.

Namespace:  Microsoft.CommerceServer.Marketing.WebService
Assembly:  Microsoft.CommerceServer.Marketing.DataManagement (in Microsoft.CommerceServer.Marketing.DataManagement.dll)

Syntax

'Declaration
Public Class ExportPromoCodes _
    Inherits Page
'Usage
Dim instance As ExportPromoCodes
public class ExportPromoCodes : Page
public ref class ExportPromoCodes : public Page
public class ExportPromoCodes extends Page

Remarks

The PromoCode is a string which the customer types into a site to redeem a PromoCode-enabled discount. Represents an .aspx file, also known as a Web Forms page, requested from a server that hosts an ASP.NET Web application. This class gets the query string and validates the DefinitionId, and BatchId.

If the query string is invalid or nullNothingnullptra null reference (Nothing in Visual Basic) a FormatException is thrown. If the query string is valid, the promo codes are obtained from the database.

Inheritance Hierarchy

System..::.Object
  System.Web.UI..::.Control
    System.Web.UI..::.TemplateControl
      System.Web.UI..::.Page
        Microsoft.CommerceServer.Marketing.WebService..::.ExportPromoCodes

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

ExportPromoCodes Members

Microsoft.CommerceServer.Marketing.WebService Namespace