Class RegisterCustomProviderAttribute
- Namespace
- CMS
- Assembly
- CMS.DataEngine.dll
Registers the custom provider within the system, replaces the default provider.
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
[ProcessingPriority(2)]
public class RegisterCustomProviderAttribute : Attribute, IPreInitAttribute
- Inheritance
-
objectAttributeRegisterCustomProviderAttribute
- Implements
- Extension Methods
Remarks
If the default provider is an explicitly generated provider, the custom provider must inherit it.
If the default provider is not an explicitly generated provider (i.e. the provider is a system-provided implementation of IInfoProvider<TInfo>), the custom provider must be based on the InfoProviderDecorator<TInfo> class.
Constructors
RegisterCustomProviderAttribute(Type)
Constructor
public RegisterCustomProviderAttribute(Type type)
Parameters
typeTypeType used as helper implementation
Properties
MarkedType
Gets the type used as provider implementation
public Type MarkedType { get; protected set; }
Property Value
- Type
Methods
PreInit()
Applies the attribute
public void PreInit()