Search Results for

    Show / Hide Table of Contents
    View Source

    Class PublishedModelAttribute

    Indicates that the class is a published content model for a specified content type.

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Models.PublishedContent
    Assembly: Umbraco.Core.dll
    Syntax
    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 Source

    PublishedModelAttribute(String)

    Initializes a new instance of the PublishedModelAttribute class with a content type alias.

    Declaration
    public PublishedModelAttribute(string contentTypeAlias)
    Parameters
    Type Name Description
    System.String contentTypeAlias

    The content type alias.

    Properties

    View Source

    ContentTypeAlias

    Gets or sets the content type alias.

    Declaration
    public string ContentTypeAlias { get; }
    Property Value
    Type Description
    System.String
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • PublishedModelAttribute(String)
    • Properties
      • ContentTypeAlias
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX