TranslationHelperTranslateColumn Method (IDataContainer, String, String, Int32, Boolean, Boolean) |
Translates the column value of the given container.
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 10.0.0
Syntax 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:
BooleanReturns true if the translation was successful
See Also