Class DynamicPropertyBag

A bag for storing dynamic properties and make them quickly accessible based on language settings.

Inheritance
System.Object
DynamicPropertyBag
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: 11.20.7
Syntax
public class DynamicPropertyBag

Constructors

DynamicPropertyBag()

Declaration
public DynamicPropertyBag()

Methods

Add(DynamicProperty)

Adds the specified dynamic property.

Declaration
public void Add(DynamicProperty property)
Parameters
Type Name Description
DynamicProperty property

The property.

Remarks

The LanguageBranch property is used to distinguish between multiple versions of the same dynamic property name.

Note that you can only add dynamic properties defined on the same page to the same instance of a DynamicPropertyBag.

TryGetProperty(String, String, out PropertyData)

Tries to retrieve a dynamic property.

Declaration
public bool TryGetProperty(string name, string languageBranch, out PropertyData property)
Parameters
Type Name Description
System.String name

The name of the dynamic property.

System.String languageBranch

The language branch that is requested.

PropertyData property

The property.

Returns
Type Description
System.Boolean

True if the property was found, otherwise false.

Extension Methods