Table of Contents

Class InfoProviderLoader

Namespace
CMS.DataEngine
Assembly
CMS.DataEngine.dll

Provides functionality for info object provider loading.

public static class InfoProviderLoader
Inheritance
object
InfoProviderLoader

Methods

GetInfoProvider(string, bool)

Gets the loaded provider by its object type.

public static IInfoProvider GetInfoProvider(string objectType, bool exceptionIfNotFound = true)

Parameters

objectType string

Provider object type

exceptionIfNotFound bool

If true, an exception is thrown if the provider is not found. If false, the null is returned if provider is not found

Returns

IInfoProvider

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 string

Provider object type

exceptionIfNotFound bool

If 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

Event Type

InfoProviderLoader.OnLoadProvider