次の方法で共有


PromoCodeUsageValidationException Class

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

The exception that is thrown when the setting of the public code is not consistent with the PromoCodeUsageOption of the PromoCodeDefinition.

Namespace:  Microsoft.CommerceServer.Marketing
Assembly:  Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)

Syntax

'Declaration
<SerializableAttribute> _
<ComVisibleAttribute(False)> _
Public Class PromoCodeUsageValidationException _
    Inherits PropertyValidationException
'Usage
Dim instance As PromoCodeUsageValidationException
[SerializableAttribute]
[ComVisibleAttribute(false)]
public class PromoCodeUsageValidationException : PropertyValidationException
[SerializableAttribute]
[ComVisibleAttribute(false)]
public ref class PromoCodeUsageValidationException : public PropertyValidationException
public class PromoCodeUsageValidationException extends PropertyValidationException

Remarks

The exception is thrown when PromoCodeUsageOption is Public and no public code is set, or if PromoCodeUsageOption is not Public and a public code is set.

Inheritance Hierarchy

System..::.Object
  System..::.Exception
    Microsoft.CommerceServer..::.PropertyValidationException
      Microsoft.CommerceServer.Marketing..::.PromoCodeUsageValidationException

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

PromoCodeUsageValidationException Members

Microsoft.CommerceServer.Marketing Namespace