Click or drag to resize
BannerInfoProviderGetRandomValidBannerInternal Method
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.BannerManagement
Assembly: CMS.BannerManagement (in CMS.BannerManagement.dll) Version: 8.2.23
Syntax
C#
protected virtual BannerInfo GetRandomValidBannerInternal(
	int categoryId,
	bool decrementHitsLeft
)

Parameters

categoryId
Type: SystemInt32
Category ID.
decrementHitsLeft
Type: SystemBoolean
If true, hits left (after reaching 0, this banner won't be returned) of the returned banner will be decremented

Return Value

Type: BannerInfo
See Also