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
- promoCode
Type: System..::.String
The promo code to look up.
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
- 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.