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,
ForgeTypeId unitTypeId
)
-
fieldThe field to retrieve.
-
unitTypeIdIdentifier of the unit to which the value will be converted before returning. Must be compatible with the spec specified when creating the Schema.
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.
-
The unitTypeId value is not compatible with the field description.
-
This field's subschema prevents reading.