AbstractInfoProviderTInfo, TProvider, TQueryGetInfoByCodeName Method (String, Int32, Boolean, Boolean) |
Gets an instance of info object based on the given code name.
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 11.0.0
Syntax protected virtual TInfo GetInfoByCodeName(
string codeName,
int siteId,
bool useHashtable,
bool searchGlobal
)
Parameters
- codeName
- Type: SystemString
Code name - siteId
- Type: SystemInt32
Site ID - useHashtable
- Type: SystemBoolean
Indicates if value should be returned from hashtable if hashtables are used - searchGlobal
- Type: SystemBoolean
If true, global objects are also searched when site object is not found
Return Value
Type:
TInfoSee Also