Interface IPublishedContent
Represents a published element.
Namespace: Umbraco.Cms.Core.Models.PublishedContent
Assembly: Umbraco.Core.dll
Syntax
public interface IPublishedContent : IPublishedElement
Remarks
Can be a published document, media or member.
Properties
View SourceLevel
Gets the tree level of the content item.
Declaration
int Level { get; }
Property Value
| Type | Description |
|---|---|
| int |
Path
Gets the tree path of the content item.
Declaration
string Path { get; }
Property Value
| Type | Description |
|---|---|
| string |
TemplateId
Gets the identifier of the template to use to render the content item.
Declaration
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.")]
string? UrlSegment { get; }
Property Value
| Type | Description |
|---|---|
| string |