Click or drag to resize

ScriptContextRenameField Method

Renames the given field in the schema.

Namespace: Compiled.EDD.Scripting
Assembly: Compiled.EDD.Scripting (in Compiled.EDD.Scripting.dll) Version: 9.0.0.0-142fa9725
Syntax
C#
public void RenameField(
	FieldItem field,
	string newFieldName
)

Parameters

field  FieldItem
The field to rename.
newFieldName  String
The new name of the field.

Implements

IScriptContextRenameField(FieldItem, String)
Exceptions
ExceptionCondition
ExceptionThrown when attempting to delete a system scoped field.
ArgumentExceptionThrown when attempting to rename a field with a duplicate name.
ArgumentExceptionThrown when invalid characters are in field name.
Remarks
Valid field names can contain letters, digits, whitespace, and the following chars: _ - : # / \ @ ! ( ) % & . < > ^
See Also