次の方法で共有


LookupPromoCodeDefinitionByCode Method

Returns a PromoCodeDefinition for a specific promotion code (discount) identifier.

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

Syntax

'Declaration
<WebMethodAttribute> _
Public Overridable Function LookupPromoCodeDefinitionByCode ( _
    promoCode As String _
) As PromoCodeDefinitionData
'Usage
Dim instance As MarketingWebService
Dim promoCode As String
Dim returnValue As PromoCodeDefinitionData

returnValue = instance.LookupPromoCodeDefinitionByCode(promoCode)
[WebMethodAttribute]
public virtual PromoCodeDefinitionData LookupPromoCodeDefinitionByCode(
    string promoCode
)
[WebMethodAttribute]
public:
virtual PromoCodeDefinitionData^ LookupPromoCodeDefinitionByCode(
    String^ promoCode
)
public function LookupPromoCodeDefinitionByCode(
    promoCode : String
) : PromoCodeDefinitionData

Parameters

Return Value

Type: PromoCodeDefinitionData
A PromoCodeDefinitionData instance associated with the promoCode

Remarks

Use this method to retrieve a specific PromoCodeDefinitionData instance containing the PromoCodeDefinition object from the database.

Permissions

See Also

Reference

MarketingWebService Class

MarketingWebService Members

Microsoft.CommerceServer.Marketing.WebService Namespace