Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentModel

    Represents the model for the current Umbraco view.

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Models
    Assembly: Umbraco.Core.dll
    Syntax
    public class ContentModel : IContentModel

    Constructors

    View Source

    ContentModel(IPublishedContent)

    Initializes a new instance of the ContentModel class with a content.

    Declaration
    public ContentModel(IPublishedContent content)
    Parameters
    Type Name Description
    IPublishedContent content

    Properties

    View Source

    Content

    Gets the content.

    Declaration
    public IPublishedContent Content { get; }
    Property Value
    Type Description
    IPublishedContent
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • ContentModel(IPublishedContent)
    • Properties
      • Content
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX