Search Results for

    Show / Hide Table of Contents
    View Source

    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 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
    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
    string
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX