Click or drag to resize
ObjectQueryBaseTQuery, TObjectOnSite Method
Filters the data to include only records on the given site. If site binding is defined, filters the global objects by the site ID

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 13.0.131
Syntax
C#
public virtual TQuery OnSite(
	SiteInfoIdentifier siteIdentifier,
	bool includeGlobal = false
)

Parameters

siteIdentifier
Type: CMS.DataEngineSiteInfoIdentifier
Site identifier
includeGlobal (Optional)
Type: SystemBoolean
If true, includes the global objects in case the object type covers both site and global objects

Return Value

Type: TQuery

Implements

IObjectQueryTQuery, TObjectOnSite(SiteInfoIdentifier, Boolean)
See Also