Click or drag to resize

ScriptContextCreateField(String, ChoiceFieldItemType) Method

Creates the given field name as choice or multi-choice if it does not exist.

Namespace: Compiled.EDD.Scripting
Assembly: Compiled.EDD.Scripting (in Compiled.EDD.Scripting.dll) Version: 9.0.0.0-142fa9725
Syntax
C#
public FieldItem CreateField(
	string fieldName,
	ChoiceFieldItemType choiceFieldItemType
)

Parameters

fieldName  String
The name of the field to create.
choiceFieldItemType  ChoiceFieldItemType
The choice type to use for the field.

Return Value

FieldItem
The created FieldItem instance.

Implements

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