Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class CatalogContentTypeAttribute

Extends the default content type registration with the possibility to associate the content type with a metadata class.

Inheritance
System.Object
CatalogContentTypeAttribute
Namespace: EPiServer.Commerce.Catalog.DataAnnotations
Assembly: EPiServer.Business.Commerce.dll
Version: 14.26.0
Syntax
public class CatalogContentTypeAttribute : ContentTypeAttribute
Examples
using EPiServer.Commerce.Catalog.ContentTypes;
using EPiServer.Commerce.Catalog.DataAnnotations;

namespace CodeSamples.EPiServer.Commerce.Catalog.Provider
{
[CatalogContentType(MetaClassName = "WineSKU")]
public class CatalogContentTypeAttributeSample : VariationContent
{
}
}

Constructors

CatalogContentTypeAttribute()

Declaration
public CatalogContentTypeAttribute()

Properties

MetaClassName

Gets or sets the name of the meta class the content type should be associated with.

Declaration
public virtual string MetaClassName { get; set; }
Property Value
Type Description
System.String