Class InfoProviderLoader
- Namespace
- CMS.DataEngine
- Assembly
- CMS.DataEngine.dll
Provides functionality for info object provider loading.
public static class InfoProviderLoader
- Inheritance
-
objectInfoProviderLoader
Methods
GetInfoProvider(string, bool)
Gets the loaded provider by its object type.
public static IInfoProvider GetInfoProvider(string objectType, bool exceptionIfNotFound = true)
Parameters
objectType
stringProvider object type
exceptionIfNotFound
boolIf true, an exception is thrown if the provider is not found. If false, the null is returned if provider is not found
Returns
GetInfoProvider<TProvider>(string, bool)
Returns provider by its object type.
public static TProvider GetInfoProvider<TProvider>(string objectType, bool exceptionIfNotFound = true) where TProvider : class, IInfoProvider
Parameters
objectType
stringProvider object type
exceptionIfNotFound
boolIf true, an exception is thrown if the provider is not found. If false, the null is returned if provider is not found.
Returns
- TProvider
Type Parameters
TProvider
Info object provider type
Events
LoadProvider
Event to load provider
public static event InfoProviderLoader.OnLoadProvider LoadProvider