Click or drag to resize
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.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax
C#
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: Int32
See Also