M

Entity.Set``1

Description:
Stores the value of the field in the entity.
Remarks:

The template parameter must match the type of the field (specified when creating the Schema) exactly; no conversions will be performed inside this method (but may be performed on the returned value). The types for containers are IList for arrays and IDictionary for maps.

Note that when string values are specified as map keys, they are case-insensitive.

This method only modifies your copy of the Entity. Store the Entity in an element or another Entity to save the new value. Write access check is not performed on each call to Set. Instead, write access is checked when you try to save the Entity in an Element or another Entity.

This method is a shortcut that will look up the field by name. If you want to call it on many entities, it is faster if you look up the field yourself.

public void Set<FieldType>(
	string fieldName,
	FieldType value
)
  • String
    fieldName
    The name of the field to update.
  • FieldType
    value
Return Value Set