Class PropertyContext
Definies a context for content that is used to know what and how to render properties.
Inheritance
System.Object
PropertyContext
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.Web
Assembly: EPiServer.dll
Version: 8.11.0Syntax
public class PropertyContext
Constructors
PropertyContext()
Initializes a new instance of the PropertyContext class.
Declaration
public PropertyContext()
PropertyContext(PropertyContext)
Initializes a new instance of the PropertyContext class with the given parent context.
Declaration
public PropertyContext(PropertyContext parentContext)
Parameters
Type | Name | Description |
---|---|---|
PropertyContext | parentContext | The parent context. |
Properties
CurrentContent
Gets or sets the current IContent instance in this context.
Declaration
public virtual IContent CurrentContent { get; set; }
Property Value
Type | Description |
---|---|
IContent |
ParentContext
Gets a reference to the parent render context.
Declaration
public virtual PropertyContext ParentContext { get; protected set; }
Property Value
Type | Description |
---|---|
PropertyContext |
PropertyContainer
Gets or sets the property container that contains properties in the current context.
Declaration
public virtual IContentData PropertyContainer { get; set; }
Property Value
Type | Description |
---|---|
IContentData |
Remarks
If not set explicitly this will return the CurrentPage or the PropertyContainer from the parent
PropertyName
Gets or sets the name of the property that is current in this context.
Declaration
public virtual string PropertyName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
IsEditable()
Determines whether the content in this context should be editable.
Declaration
public virtual bool IsEditable()
Returns
Type | Description |
---|---|
System.Boolean |
|