Class RegisterListingCellValueExtractorAttribute
Registers an Kentico.Xperience.Admin.Base.IComponentCellValueExtractor providing the exported value of the listing table cells rendered by the component of the ComponentName name.
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public sealed class RegisterListingCellValueExtractorAttribute : RegisterListingCellValueExtractorBaseAttribute
- Inheritance
-
objectAttributeRegisterListingCellValueExtractorAttribute
- Inherited Members
- Extension Methods
Remarks
The cells of a component are handled by a single extractor. An extractor registered by this attribute replaces the one the system registers for the same component, regardless of the order in which the assemblies are initialized. Registering several extractors for one component is a configuration error reported when the extractors are first used.
The extractor is instantiated once for the lifetime of the application, so it can declare only singleton services as constructor parameters. The attribute is collected from the assemblies marked by the AssemblyDiscoverableAttribute only.
Constructors
RegisterListingCellValueExtractorAttribute(string, Type)
Initializes a new instance of the RegisterListingCellValueExtractorAttribute class.
public RegisterListingCellValueExtractorAttribute(string componentName, Type extractorType)
Parameters
componentNamestringName of the front-end component whose cells the extractor handles.
extractorTypeTypeType implementing the Kentico.Xperience.Admin.Base.IComponentCellValueExtractor interface.