Click or drag to resize
TranslationHelperTranslateColumn Method (GeneralizedInfo, String, String, Int32, Boolean, Boolean)
Translates the column value of the given info object.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.2.23
Syntax
C#
public bool TranslateColumn(
	GeneralizedInfo infoObj,
	string columnName,
	string objectType,
	int siteId = 0,
	bool useDefaultValue = true,
	bool required = true
)

Parameters

infoObj
Type: CMS.DataEngineGeneralizedInfo
Object with the data
columnName
Type: SystemString
Column name to translate
objectType
Type: SystemString
Object type
siteId (Optional)
Type: SystemInt32
Target site ID for objects lookup which are site-related
useDefaultValue (Optional)
Type: SystemBoolean
Indicates if default value should be used for new IDs
required (Optional)
Type: SystemBoolean
If false, the column is allowed to be set to null in case the translation is not found.

Return Value

Type: Boolean
Returns true if the translation was successful
See Also