Class PropertyBagObjectsExtensions
Class with extension methods for Property
Inheritance
System.Object
PropertyBagObjectsExtensions
Namespace: EPiServer.Data.Dynamic
Assembly: EPiServer.Data.dll
Version: 12.0.3Syntax
public static class PropertyBagObjectsExtensions : Object
Methods
ToPropertyBag(Object)
Create a Property
- Property must a have a getter and setter
2a) Getter must be public
OR
2b) The class must be marked either with the System.
Runtime. or EPiSerialization. Data Contract Attribute Server and the property must be marked either with the System.Data Contract Attribute Runtime. or EPiSerialization. Data Member Attribute Server Data Member Attribute
Declaration
public static PropertyBag ToPropertyBag(this object value)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The System. |
Returns
Type | Description |
---|---|
Property |
A new Property |
ToPropertyBag(Object, IEnumerable<String>)
Create a Property
Declaration
public static PropertyBag ToPropertyBag(this object value, IEnumerable<string> propertyNames)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The System. |
System. |
propertyNames | The names of the properties to extract a place into the property bag |
Returns
Type | Description |
---|---|
Property |
A new Property |