Methods | ScriptContext.RenameField Method
Renames the given field in the schema.
Syntax
C#
Copy
public void RenameField( FieldItem field string newFieldName )
Parameters
field FieldItem
The field to rename.
newFieldName String
The new name of the field.
Implements
IScriptContext.RenameField(FieldItem, String)
Exceptions
| Exception | Condition |
|---|---|
| Exception | Thrown when attempting to delete a system scoped field. |
| ArgumentException | Thrown when attempting to rename a field with a duplicate name. |
| ArgumentException | Thrown when invalid characters are in field name. |
Remarks
Valid field names can contain letters, digits, whitespace, and the following chars: _ - : # / \ @ ! ( ) % & . < > ^
See Also
Reference
ScriptContext Class
Compiled.EDD.Scripting Namespace