Methods | DocumentItem.SetFieldData(FieldItem, Boolean) Method
Sets the field data from a bool value for the document.
The field type must match Boolean.
Syntax
C#
Copy
public bool SetFieldData(
FieldItem field,
bool fieldValue
)
Parameters
field FieldItem
The field to update.
fieldValue Boolean
The field value to apply to the field.
Return Value
Booleantrue if value was applied successfully; otherwise, false.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | Thrown if given field is a System field or the fieldValue does not match the field's type. |
See Also
Reference
DocumentItem Class
SetFieldData Overload
Compiled.EDD.Scripting Namespace