다음을 통해 공유


CreateFromCache Method

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

Creates a DiscountItemCollection from the specified Cache.

Overload List

  Name Description
ms870925.pubmethod(en-US,CS.70).gifms870925.static(en-US,CS.70).gif CreateFromCache(String) Creates a DiscountItemCollection from the specified cache name.
ms870925.pubmethod(en-US,CS.70).gifms870925.static(en-US,CS.70).gif CreateFromCache(CommerceCache) Creates a DiscountItemCollection from the specified Cache.

Top

Remarks

The DiscountItemCollection contains all discounts that meet all of the following criteria:

  • The parent customer of the discount is not deleted or archived.

  • The parent campaign of the discount is not deleted or archived.

  • The parent campaign of the discount is active.

  • The discount is not deleted or archived.

  • The discount is active.

  • The discount has started or will start within one week.

  • The discount has not ended, or the discount has ended within the past month.

See Also

Reference

DiscountItemCollection Class

DiscountItemCollection Members

Microsoft.CommerceServer.Runtime.Marketing Namespace