Returns the BannerInfo structure for the random banner.
Banner has to be:
- enabled
- valid now (ValidFrom and ValidTo) or ValidFrom and ValidTo can be null
- and has more than 0 hits and clicks left (or null - unlimited)
Namespace: CMS.BannerManagementAssembly: CMS.BannerManagement (in CMS.BannerManagement.dll) Version: 8.0.0.0 (8.0.5239.26125)
Parameters
- categoryId
- Type: System Int32
Category ID.
- decrementHitsLeft
- Type: System Boolean
If true, hits left (after reaching 0, this banner won't be returned) of the returned banner will be decremented
Return Value
Type: BannerInfoSee Also