<img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=6889170&amp;fmt=gif">
Skip to content
  • There are no suggestions because the search field is empty.

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