Click or drag to resize

IScriptContextCreateField Method (String, FieldItemType)

Creates a new field using the given FieldItemType.

Namespace:  Compiled.EDD.Scripting
Assembly:  Compiled.EDD.Scripting (in Compiled.EDD.Scripting.dll) Version: 7.6.1.3-5cb5c356
Syntax
C#
FieldItem CreateField(
	string fieldName,
	FieldItemType fieldType
)

Parameters

fieldName
Type: SystemString
Name of the field to create.
fieldType
Type: Compiled.EDD.ScriptingFieldItemType
Type of the field.

Return Value

Type: FieldItem
Field created; exception thrown if the name already exists.
See Also