Click or drag to resize
ProviderHelperGetInfoByName Method (String, String, Int32, Boolean)
Gets the info by its type and code name from the appropriate provider.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 13.0.131
Syntax
C#
public static BaseInfo GetInfoByName(
	string objectType,
	string name,
	int siteId,
	bool exceptionIfObjTypeNotFound = false
)

Parameters

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

Return Value

Type: BaseInfo
See Also