Entity.Get``1
Description:
Retrieves the value of the field in the entity.
Retrieves 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; this method does not perform data type conversions. The types for containers are IList for arrays and IDictionary for maps.
Overloads (4):
public FieldType Get<FieldType>(
Field field
)
-
fieldThe field to retrieve.
Return Value
FieldType
-
A non-optional argument was NULL
-
The Field belongs to a different Schema from this Entity, or this Entity is invalid.
-
Requested type does not match the field type.
-
For floating-point fields, use the overload taking a ForgeTypeId parameter.
-
This field's subschema prevents reading.