Class BuildingContext

Contains the data used to build up a IContentData instance.

Inheritance
System.Object
BuildingContext
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.Construction
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
public class BuildingContext

Constructors

BuildingContext(ContentType)

Initializes a new instance of the BuildingContext class.

Declaration
public BuildingContext(ContentType contentType)
Parameters
Type Name Description
ContentType contentType

Type of the content.

Properties

Gets or sets the reference for the content instance. For new unsaved pages it should be EmptyReference

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

The content link.

ContentType

Gets or sets the ContentType to use.

Declaration
public ContentType ContentType { get; }
Property Value
Type Description
ContentType

The ContentType to use.

LanguageSelector

Gets or sets the language selector to use to set the language of the content.

Declaration
public ILanguageSelector LanguageSelector { get; set; }
Property Value
Type Description
ILanguageSelector

The language selector.

Parent

Gets or sets the reference for the Parent of the content.

Declaration
public IContent Parent { get; set; }
Property Value
Type Description
IContent

The parent reference.

SetPropertyValues

Gets or sets a value indicating whether the builder should set property values, e.g. default and inherited values.

Declaration
public bool SetPropertyValues { get; set; }
Property Value
Type Description
System.Boolean

true if property values should be set; otherwise, false.

Remarks

The default value is true which means default and inherited values will be set.

Extension Methods