Click or drag to resize
InfoProviderLoaderGetInfoProviderTProvider Method (String, Boolean)
Returns provider by its object type.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 12.0.0
Syntax
C#
public static TProvider GetInfoProvider<TProvider>(
	string objectType,
	bool exceptionIfNotFound = true
)
where TProvider : class, IInfoProvider

Parameters

objectType
Type: SystemString
Provider object type
exceptionIfNotFound (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.

Type Parameters

TProvider
Info object provider type

Return Value

Type: TProvider
See Also