Engine.CreateFieldRenamer(RecordType, DPath, DName, CultureInfo) Method

Definition

Creates a renamer instance for updating a field reference from parameters in expressions.

C#
public Microsoft.PowerFx.Core.RenameDriver CreateFieldRenamer (Microsoft.PowerFx.Types.RecordType parameters, Microsoft.PowerFx.Core.Utils.DPath pathToRename, Microsoft.PowerFx.Core.Utils.DName updatedName, System.Globalization.CultureInfo culture);

Parameters

parameters
RecordType

Type of parameters for formula. The fields in the parameter record can be acecssed as top-level identifiers in the formula. Must be the names from before any rename operation is applied.

pathToRename
DPath

Path to the field to rename.

updatedName
DName

New name. Replaces the last segment of pathToRename.

culture
CultureInfo

Culture.

Returns

Applies to

Product Versions
Power Fx SDK Latest