Click or drag to resize
ProviderHelperGetInfoById Method
Gets the info by its type and ID from the appropriate provider.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 12.0.0
Syntax
C#
public static BaseInfo GetInfoById(
	string objectType,
	int id,
	bool exceptionIfObjTypeNotFound = false
)

Parameters

objectType
Type: SystemString
Object type
id
Type: SystemInt32
ID of the object
exceptionIfObjTypeNotFound (Optional)
Type: SystemBoolean
If true, an exception is thrown if the object type is not found. If false, the null is returned if the object type is not found

Return Value

Type: BaseInfo
See Also