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

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

Parameters

container
Type: CMS.BaseIDataContainer
Container with the data
columnName
Type: SystemString
Column name to translate
objectType
Type: SystemString
Reference 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