View Source
Class ContentNode
Inheritance
System.Object
Assembly: Umbraco.PublishedCache.NuCache.dll
Syntax
Constructors
View Source
ContentNode()
Declaration
View Source
ContentNode(Int32, Guid, IPublishedContentType, Int32, String, Int32, Int32, DateTime, Int32)
Declaration
public ContentNode(int id, Guid uid, IPublishedContentType contentType, int level, string path, int sortOrder, int parentContentId, DateTime createDate, int creatorId)
Parameters
| Type |
Name |
Description |
| System.Int32 |
id |
|
| Guid |
uid |
|
| IPublishedContentType |
contentType |
|
| System.Int32 |
level |
|
| System.String |
path |
|
| System.Int32 |
sortOrder |
|
| System.Int32 |
parentContentId |
|
| DateTime |
createDate |
|
| System.Int32 |
creatorId |
|
View Source
ContentNode(Int32, Guid, IPublishedContentType, Int32, String, Int32, Int32, DateTime, Int32, ContentData, ContentData, IPublishedSnapshotAccessor, IVariationContextAccessor, IPublishedModelFactory)
Declaration
public ContentNode(int id, Guid uid, IPublishedContentType contentType, int level, string path, int sortOrder, int parentContentId, DateTime createDate, int creatorId, ContentData draftData, ContentData publishedData, IPublishedSnapshotAccessor publishedSnapshotAccessor, IVariationContextAccessor variationContextAccessor, IPublishedModelFactory publishedModelFactory)
Parameters
| Type |
Name |
Description |
| System.Int32 |
id |
|
| Guid |
uid |
|
| IPublishedContentType |
contentType |
|
| System.Int32 |
level |
|
| System.String |
path |
|
| System.Int32 |
sortOrder |
|
| System.Int32 |
parentContentId |
|
| DateTime |
createDate |
|
| System.Int32 |
creatorId |
|
| ContentData |
draftData |
|
| ContentData |
publishedData |
|
| IPublishedSnapshotAccessor |
publishedSnapshotAccessor |
|
| IVariationContextAccessor |
variationContextAccessor |
|
| IPublishedModelFactory |
publishedModelFactory |
|
View Source
ContentNode(Int32, Guid, Int32, String, Int32, Int32, DateTime, Int32)
Declaration
public ContentNode(int id, Guid uid, int level, string path, int sortOrder, int parentContentId, DateTime createDate, int creatorId)
Parameters
| Type |
Name |
Description |
| System.Int32 |
id |
|
| Guid |
uid |
|
| System.Int32 |
level |
|
| System.String |
path |
|
| System.Int32 |
sortOrder |
|
| System.Int32 |
parentContentId |
|
| DateTime |
createDate |
|
| System.Int32 |
creatorId |
|
View Source
ContentNode(ContentNode, IPublishedModelFactory, Nullable<IPublishedContentType>)
Declaration
public ContentNode(ContentNode origin, IPublishedModelFactory publishedModelFactory, IPublishedContentType? contentType = null)
Parameters
| Type |
Name |
Description |
| ContentNode |
origin |
|
| IPublishedModelFactory |
publishedModelFactory |
|
| System.Nullable<IPublishedContentType> |
contentType |
|
Fields
View Source
ContentType
Declaration
public IPublishedContentType ContentType
Field Value
| Type |
Description |
| IPublishedContentType |
|
View Source
CreateDate
Declaration
public readonly DateTime CreateDate
Field Value
| Type |
Description |
| DateTime |
|
View Source
CreatorId
Declaration
public readonly int CreatorId
Field Value
| Type |
Description |
| System.Int32 |
|
View Source
FirstChildContentId
Declaration
public int FirstChildContentId
Field Value
| Type |
Description |
| System.Int32 |
|
View Source
Id
Declaration
Field Value
| Type |
Description |
| System.Int32 |
|
View Source
LastChildContentId
Declaration
public int LastChildContentId
Field Value
| Type |
Description |
| System.Int32 |
|
View Source
Level
Declaration
public readonly int Level
Field Value
| Type |
Description |
| System.Int32 |
|
View Source
NextSiblingContentId
Declaration
public int NextSiblingContentId
Field Value
| Type |
Description |
| System.Int32 |
|
View Source
ParentContentId
Declaration
public readonly int ParentContentId
Field Value
| Type |
Description |
| System.Int32 |
|
View Source
Path
Declaration
public readonly string Path
Field Value
| Type |
Description |
| System.String |
|
View Source
PreviousSiblingContentId
Declaration
public int PreviousSiblingContentId
Field Value
| Type |
Description |
| System.Int32 |
|
View Source
SortOrder
Declaration
public readonly int SortOrder
Field Value
| Type |
Description |
| System.Int32 |
|
View Source
Uid
Declaration
Field Value
Properties
View Source
DraftModel
Declaration
public IPublishedContent? DraftModel { get; }
Property Value
| Type |
Description |
| System.Nullable<IPublishedContent> |
|
View Source
HasPublished
Declaration
public bool HasPublished { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
View Source
PublishedModel
Declaration
public IPublishedContent? PublishedModel { get; }
Property Value
| Type |
Description |
| System.Nullable<IPublishedContent> |
|
Methods
View Source
HasPublishedCulture(String)
Declaration
public bool HasPublishedCulture(string culture)
Parameters
| Type |
Name |
Description |
| System.String |
culture |
|
Returns
| Type |
Description |
| System.Boolean |
|
View Source
SetContentTypeAndData(IPublishedContentType, ContentData, ContentData, IPublishedSnapshotAccessor, IVariationContextAccessor, IPublishedModelFactory)
Declaration
public void SetContentTypeAndData(IPublishedContentType contentType, ContentData draftData, ContentData publishedData, IPublishedSnapshotAccessor publishedSnapshotAccessor, IVariationContextAccessor variationContextAccessor, IPublishedModelFactory publishedModelFactory)
Parameters
| Type |
Name |
Description |
| IPublishedContentType |
contentType |
|
| ContentData |
draftData |
|
| ContentData |
publishedData |
|
| IPublishedSnapshotAccessor |
publishedSnapshotAccessor |
|
| IVariationContextAccessor |
variationContextAccessor |
|
| IPublishedModelFactory |
publishedModelFactory |
|
View Source
ToKit()
Declaration
public ContentNodeKit ToKit()
Returns