Search Results for

    Show / Hide Table of Contents
    View Source

    Class PublishedContentWrapped

    Provides an abstract base class for IPublishedContent implementations that wrap and extend another IPublishedContent.

    Inheritance
    object
    PublishedElementWrapped<IPublishedContent>
    Namespace: Umbraco.Cms.Core.Models.PublishedContent
    Assembly: Umbraco.Core.dll
    Syntax
    public abstract class PublishedContentWrapped : PublishedElementWrapped<IPublishedContent>, IPublishedContent, IPublishedElement

    Constructors

    View Source

    PublishedContentWrapped(IPublishedContent)

    Initialize a new instance of the PublishedContentWrapped class with an IPublishedContent instance to wrap.

    Declaration
    protected PublishedContentWrapped(IPublishedContent content)
    Parameters
    Type Name Description
    IPublishedContent content

    The content to wrap.

    Properties

    View Source

    Level

    Gets the tree level of the content item.

    Declaration
    public virtual int Level { get; }
    Property Value
    Type Description
    int
    View Source

    Path

    Gets the tree path of the content item.

    Declaration
    public virtual string Path { get; }
    Property Value
    Type Description
    string
    View Source

    TemplateId

    Gets the identifier of the template to use to render the content item.

    Declaration
    public virtual int? TemplateId { get; }
    Property Value
    Type Description
    int?
    View Source

    UrlSegment

    Gets the URL segment of the content item for the current culture.

    Declaration
    [Obsolete("Please use GetUrlSegment() on IDocumentUrlService instead. Scheduled for removal in Umbraco 20.")]
    public virtual string? UrlSegment { get; }
    Property Value
    Type Description
    string
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX