November Happy Hour will be moved to Thursday December 5th.

Class GetChildrenReferenceResult

A return model class used in custom implementations of Content Providers

Inheritance
System.Object
GetChildrenReferenceResult
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 9.12.2
Syntax
public class GetChildrenReferenceResult

Constructors

GetChildrenReferenceResult()

Declaration
public GetChildrenReferenceResult()

Properties

The reference to the content

Declaration
public ContentReference ContentLink { get; set; }
Property Value
Type Description
ContentReference

IsLeafNode

If the content should be considered a leaf node (only used for performance reasons to avoid extra calls to GetChildrenReference)

Declaration
public bool? IsLeafNode { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>
Remarks

Setting this value to true will cause the cache to pre-populate a marker to avoid calling GetChildrenReferences for that item

WARNING! This value is only valid when loaded directly from the data source directly (GetChildrenReferences), it may be not be correct if accessed after it has been added to the cache.

ModelType

Gets or sets the content type (used for filtering per type before loading content)

Declaration
public Type ModelType { get; set; }
Property Value
Type Description
System.Type
Remarks

This is not guarantee to be the real content type as it was registered, for types that are not possible to load it might be a basetype as PageData, BlockData or IContent

Extension Methods