ProviderHelperGetInfoById Method |
Gets the info by its type and ID from the appropriate provider.
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 13.0.131
Syntax 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:
BaseInfoSee Also