Share via


NewPromoCodeDefinition Method

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

Creates a new PromoCodeDefinition object with default values.

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

Syntax

'Declaration
<WebMethodAttribute> _
Public Overridable Function NewPromoCodeDefinition As PromoCodeDefinitionData
'Usage
Dim instance As MarketingWebService
Dim returnValue As PromoCodeDefinitionData

returnValue = instance.NewPromoCodeDefinition()
[WebMethodAttribute]
public virtual PromoCodeDefinitionData NewPromoCodeDefinition()
[WebMethodAttribute]
public:
virtual PromoCodeDefinitionData^ NewPromoCodeDefinition()
public function NewPromoCodeDefinition() : PromoCodeDefinitionData

Return Value

Type: PromoCodeDefinitionData
A PromoCodeDefinitionData instance containing the PromoCodeDefinition.

Remarks

Creates a new PromoCodeDefinition Use this method to retrieve a PromoCodeDefinitionData instance containing the PromoCodeDefinition object from the database. The Expression does not exist in the database until SavePromoCodeDefinition is called.

Permissions

See Also

Reference

MarketingWebService Class

MarketingWebService Members

Microsoft.CommerceServer.Marketing.WebService Namespace