Class BuildingContext
Contains the context information 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: 10.10.4Syntax
public class BuildingContextConstructors
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
ContentLink
Gets or sets the reference for the content instance.
Declaration
public ContentReference ContentLink { get; set; }Property Value
| Type | Description | 
|---|---|
| ContentReference | 
Remarks
For new unsaved pages it should be EmptyReference
ContentType
Gets the ContentType to use.
Declaration
public ContentType ContentType { get; }Property Value
| Type | Description | 
|---|---|
| ContentType | 
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 | 
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.Boolean | 
 | 
Remarks
The default value is true which means default and inherited values will be set.
