Click or drag to resize
BannerCategoryInfoProviderGetBannerCategoryInfoFromSiteOrGlobal Method
Gets banner category info with the specified name. First, banner categories assigned to the site specified by siteId are searched and then global banner categories. If there is no banner category with this name on specified site or global, null is returned.

Namespace: CMS.BannerManagement
Assembly: CMS.BannerManagement (in CMS.BannerManagement.dll) Version: 12.0.0
Syntax
C#
public static BannerCategoryInfo GetBannerCategoryInfoFromSiteOrGlobal(
	string bannerCategoryCodeName,
	int siteId
)

Parameters

bannerCategoryCodeName
Type: SystemString
Code name.
siteId
Type: SystemInt32
Site to be searched.

Return Value

Type: BannerCategoryInfo
See Also