Class BuildingContext
Contains the context information used to build up a IContent
Inheritance
Namespace: EPiServer.Construction
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public class BuildingContext : Object
Constructors
BuildingContext(ContentType)
Initializes a new instance of the Building
Declaration
public BuildingContext(ContentType contentType)
Parameters
Type | Name | Description |
---|---|---|
Content |
contentType | Type of the content. |
Properties
ContentLink
Gets or sets the reference for the content instance.
Declaration
public ContentReference ContentLink { get; set; }
Property Value
Type | Description |
---|---|
Content |
Remarks
For new unsaved pages it should be Empty
ContentType
Gets the Content
Declaration
public ContentType ContentType { get; }
Property Value
Type | Description |
---|---|
Content |
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 |
---|---|
ILanguage |
Parent
Gets or sets the reference for the Parent of the content.
Declaration
public IContent Parent { get; set; }
Property Value
Type | Description |
---|---|
IContent |
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. |
|
Remarks
The default value is true which means default and inherited values will be set.