AbstractInfoProviderTInfo, TProvider, TQueryAddSiteWhereCondition Method |
Note: This API is now obsolete.
Creates site where condition from the specified parameters and adds it to the original where condition.
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 11.0.0
Syntax [ObsoleteAttribute("Method was not intended for public use and will be removed in the next version.")]
public virtual string AddSiteWhereCondition(
string where,
int siteId,
string keyName,
bool combine,
string op = "AND"
)
Parameters
- where
- Type: SystemString
Original where condition - siteId
- Type: SystemInt32
Site ID. Set to 0 for global objects only - keyName
- Type: SystemString
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: SystemBoolean
True - site objects are returned together with the global objects. False - only global objects are returned - op (Optional)
- Type: SystemString
Logic operator ("AND" or "OR") which says how the site condition is joined with the original condition
Return Value
Type:
StringSee Also