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
- 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.