RVTDocs.com

Entity.Get<FieldType>(Field)

Method
Description:
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.

Syntax
public FieldType Get<FieldType>(
	Field field
)
Parameters
Parameter Type Description
field Field The field to retrieve.
FieldType The type of the field
Return Value
Type Description
ArgumentNullException FieldType
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was NULL
InvalidOperationException The Field belongs to a different Schema from this Entity, or this Entity is invalid.
ArgumentException Requested type does not match the field type.
ArgumentException For floating-point fields, use the overload taking a ForgeTypeId parameter.
ArgumentException This field's subschema prevents reading.