AbstractInfoProvider TInfo, TProvider  AddSiteWhereCondition Method (String, Int32, String, Boolean, String)Kentico 8.1 API Reference
Creates site where condition from the specified parameters and adds it to the original where condition.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

where
Type: OnlineSystem String
Original where condition
siteId
Type: OnlineSystem Int32
Site ID. Set to 0 for global objects only
keyName
Type: OnlineSystem String
Name of the settings key which says whether global objects are used/allowed. Set to null if it doesn't depends on any settings key
combine
Type: OnlineSystem Boolean
True - site objects are returned together with the global objects. False - only global objects are returned
op
Type: OnlineSystem String
Logic operator ("AND" or "OR") which says how the site condition is joined with the original condition

Return Value

Type: OnlineString
See Also