Class PublishedModelAttribute
Represents the base class for custom attributes.
Inheritance
object
Attribute
Namespace: Umbraco.Cms.Core.Models.PublishedContent
Assembly: Umbraco.Core.dll
Syntax
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public sealed class PublishedModelAttribute : Attribute
Remarks
By default, the name of the class is assumed to be the content type alias. The
PublishedContentModelAttribute can be used to indicate a different alias.
Constructors
View SourcePublishedModelAttribute(string)
Initializes a new instance of the PublishedModelAttribute class with a content type alias.
Declaration
public PublishedModelAttribute(string contentTypeAlias)
Parameters
| Type | Name | Description |
|---|---|---|
| string | contentTypeAlias | The content type alias. |
Properties
View SourceContentTypeAlias
Gets or sets the content type alias.
Declaration
public string ContentTypeAlias { get; }
Property Value
| Type | Description |
|---|---|
| string |