InfoProviderLoaderGetInfoProviderTProvider Method (String, Boolean) |
Returns provider by its object type.
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 12.0.0
Syntax 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:
TProviderSee Also