AddValue(ContentPropertyDefinition, object)
Adds a new value to the property and returns the newly created ContentModelValue object.
public ContentModelValue AddValue(ContentPropertyDefinition propertyDefinition, object value)
- Returns:
- ContentModelValue
Parameters
propertyDefinition
ContentPropertyDefinition
The property definition to add the value for.
value
object
The value to be added.
AddValue(ContentPropertyDefinition, ContentModelValue)
Adds a new ContentModelValue to the property.
public AddValue(ContentPropertyDefinition propertyDefinition, ContentModelValue contentValue)
Parameters
propertyDefinition
ContentPropertyDefinition
The property definition to add the value for.
contentValue
ContentModelValue
The ContentModelValue object that holds the new value.
AddValue(LocalizableContentView, string, object)
public static ContentModelValue AddValue(LocalizableContentView contentView, string propertyKey, object value)
- Returns:
- ContentModelValue