Class TrackContentItemReferenceAttribute
- Namespace
- Kentico.PageBuilder.Web.Mvc
- Assembly
- Kentico.Content.Web.Mvc.dll
Attribute used to specify a type that extracts references from a page builder component property value.
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public sealed class TrackContentItemReferenceAttribute : Attribute
- Inheritance
-
objectAttributeTrackContentItemReferenceAttribute
- Extension Methods
Constructors
TrackContentItemReferenceAttribute(Type)
Initializes a new instance of the TrackContentItemReferenceAttribute class.
public TrackContentItemReferenceAttribute(Type referenceExtractorType)
Parameters
referenceExtractorType
TypeType of the references extractor.
Exceptions
- ArgumentNullException
Thrown when
referenceExtractorType
is null.- ArgumentException
Thrown when
referenceExtractorType
is not type of IContentItemReferenceExtractor.
Properties
ReferenceExtractorType
Gets the type of the references extractor.
public Type ReferenceExtractorType { get; }
Property Value
- Type