ECommerceHelperGetSiteID Method |
Returns 0 if specified site uses global objects based on the specified e-commerce setting, otherwise returns site ID of the specified site.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.2.23
Syntax public static int GetSiteID(
SiteInfoIdentifier siteIdentifier,
string keyName
)
Parameters
- siteIdentifier
- Type: CMS.DataEngineSiteInfoIdentifier
Site identifier (site ID or site name) - keyName
- Type: SystemString
One of the e-commerce settings keys which determine if specific global objects are used
Return Value
Type:
Int32See Also