<img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=6889170&amp;fmt=gif">
Skip to content
  • There are no suggestions because the search field is empty.

Methods | DocumentItem.SetFieldData(FieldItem, Object) Method

Sets the field data from an object value for the document. The object value must match the fields data type or an exception will be thrown.

Syntax

C# Copy
public bool SetFieldData(
	FieldItem field,
	Object fieldValue
)

Parameters
field    FieldItem
           The field to update.
fieldValue     Object
           The field value to apply to the field.

Return Value
Boolean
true 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