A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn 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