RVTDocs.com

Entity.Clear(Field)

Method
Description:
Resets the field to its default value.
Remarks:
The default value is zero for numeric fields, invalid value for identifiers and entities, and empty for strings and containers.
Syntax
public void Clear(
	Field field
)
Parameters
Parameter Type Description
field Field The field to clear.
Return Value
Exceptions
Exception Condition
ArgumentException The Field belongs to a different Schema from this Entity, or this Entity is invalid. -or- This field's subschema prevents writing.
ArgumentNullException A non-optional argument was null