Class PublishedContentWrapped
Provides an abstract base class for IPublishedContent implementations that
wrap and extend another IPublishedContent.
Namespace: Umbraco.Cms.Core.Models.PublishedContent
Assembly: Umbraco.Core.dll
Syntax
public abstract class PublishedContentWrapped : PublishedElementWrapped<IPublishedContent>, IPublishedContent, IPublishedElement
Constructors
View SourcePublishedContentWrapped(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 SourceLevel
Gets the tree level of the content item.
Declaration
public virtual int Level { get; }
Property Value
| Type | Description |
|---|---|
| int |
Path
Gets the tree path of the content item.
Declaration
public virtual string Path { get; }
Property Value
| Type | Description |
|---|---|
| string |
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? |
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 |