Click or drag to resize
AbstractInfoProviderTInfo, TProviderGetInfoByCodeName Method (String, Int32, Boolean, Boolean)
Gets an instance of info object based on the given code name.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.2.23
Syntax
C#
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: TInfo
See Also