Click or drag to resize

ScriptContextCreateField Method (String, FieldItemType)

Creates the given field name using the provided FieldItemType if it does not exist.

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

Parameters

fieldName
Type: SystemString
The name of the field to create.
fieldType
Type: Compiled.EDD.ScriptingFieldItemType
The data type of the field.

Return Value

Type: FieldItem
The created FieldItem instance.

Implements

IScriptContextCreateField(String, FieldItemType)
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown if fieldName is null or empty.
ArgumentExceptionThrown if the fieldName already exists.
See Also